1 """The AirTouch4 integration."""
3 from airtouch4pyapi
import AirTouch
10 from .coordinator
import AirtouchDataUpdateCoordinator
12 PLATFORMS = [Platform.CLIMATE]
14 type AirTouch4ConfigEntry = ConfigEntry[AirtouchDataUpdateCoordinator]
18 """Set up AirTouch4 from a config entry."""
19 host = entry.data[CONF_HOST]
20 airtouch = AirTouch(host)
21 await airtouch.UpdateInfo()
22 info = airtouch.GetAcs()
24 raise ConfigEntryNotReady
26 await coordinator.async_config_entry_first_refresh()
27 entry.runtime_data = coordinator
29 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
35 """Unload a config entry."""
36 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
bool async_unload_entry(HomeAssistant hass, AirTouch4ConfigEntry entry)
bool async_setup_entry(HomeAssistant hass, AirTouch4ConfigEntry entry)