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