1 """The Aquacell integration."""
3 from __future__
import annotations
5 from aioaquacell
import AquacellApi
6 from aioaquacell.const
import Brand
13 from .const
import CONF_BRAND
14 from .coordinator
import AquacellCoordinator
16 PLATFORMS = [Platform.SENSOR]
18 type AquacellConfigEntry = ConfigEntry[AquacellCoordinator]
22 """Set up Aquacell from a config entry."""
25 brand = entry.data.get(CONF_BRAND, Brand.AQUACELL)
27 aquacell_api = AquacellApi(session, brand)
31 await coordinator.async_config_entry_first_refresh()
32 entry.runtime_data = coordinator
34 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
40 """Unload a config entry."""
41 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
bool async_setup_entry(HomeAssistant hass, AquacellConfigEntry entry)
aiohttp.ClientSession async_get_clientsession(HomeAssistant hass, bool verify_ssl=True, socket.AddressFamily family=socket.AF_UNSPEC, ssl_util.SSLCipherList ssl_cipher=ssl_util.SSLCipherList.PYTHON_DEFAULT)