1 """The simplepush component."""
9 from .const
import DATA_HASS_CONFIG, DOMAIN
11 PLATFORMS = [Platform.NOTIFY]
13 CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
16 async
def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
17 """Set up the simplepush component."""
19 hass.data[DATA_HASS_CONFIG] = config
24 """Set up simplepush from a config entry."""
26 hass.async_create_task(
27 discovery.async_load_platform(
32 hass.data[DATA_HASS_CONFIG],
40 """Unload a config entry."""
41 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
bool async_setup(HomeAssistant hass, ConfigType config)
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)