1 """The Suez Water integration."""
3 from __future__
import annotations
9 from .const
import DOMAIN
10 from .coordinator
import SuezWaterCoordinator
12 PLATFORMS: list[Platform] = [Platform.SENSOR]
16 """Set up Suez Water from a config entry."""
19 await coordinator.async_config_entry_first_refresh()
21 hass.data.setdefault(DOMAIN, {})[entry.entry_id] = coordinator
23 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
29 """Unload a config entry."""
30 if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):
31 hass.data[DOMAIN].pop(entry.entry_id)
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)