Home Assistant Unofficial Reference 2024.12.1
__init__.py
Go to the documentation of this file.
1 """The Season integration."""
2 
3 from homeassistant.config_entries import ConfigEntry
4 from homeassistant.core import HomeAssistant
5 
6 from .const import PLATFORMS
7 
8 
9 async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
10  """Set up from a config entry."""
11  await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
12  return True
13 
14 
15 async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
16  """Unload a config entry."""
17  return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
Definition: __init__.py:15
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)
Definition: __init__.py:9