1 """The Adax integration."""
3 from __future__
import annotations
9 PLATFORMS = [Platform.CLIMATE]
13 """Set up Adax from a config entry."""
14 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
19 """Unload a config entry."""
20 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
24 """Migrate old entry."""
26 if config_entry.version == 1:
27 if isinstance(config_entry.unique_id, int):
28 hass.config_entries.async_update_entry(
30 unique_id=
str(config_entry.unique_id),
31 title=
str(config_entry.title),
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
bool async_migrate_entry(HomeAssistant hass, ConfigEntry config_entry)
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)