1 """The PVOutput integration."""
3 from __future__
import annotations
8 from .const
import DOMAIN, PLATFORMS
9 from .coordinator
import PVOutputDataUpdateCoordinator
13 """Set up PVOutput from a config entry."""
15 await coordinator.async_config_entry_first_refresh()
17 hass.data.setdefault(DOMAIN, {})[entry.entry_id] = coordinator
18 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
24 """Unload PVOutput config entry."""
25 if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):
26 del hass.data[DOMAIN][entry.entry_id]
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)