1 """The ATAG Integration."""
6 from .coordinator
import AtagConfigEntry, AtagDataUpdateCoordinator
9 PLATFORMS = [Platform.CLIMATE, Platform.SENSOR, Platform.WATER_HEATER]
13 """Set up Atag integration from a config entry."""
16 await coordinator.async_config_entry_first_refresh()
18 entry.runtime_data = coordinator
19 if entry.unique_id
is None:
20 hass.config_entries.async_update_entry(entry, unique_id=coordinator.atag.id)
22 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
28 """Unload Atag config entry."""
29 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
bool async_unload_entry(HomeAssistant hass, AtagConfigEntry entry)
bool async_setup_entry(HomeAssistant hass, AtagConfigEntry entry)