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