1 """The Aseko Pool Live integration."""
3 from __future__
import annotations
5 from datetime
import timedelta
8 from aioaseko
import Aseko, Unit
14 from .const
import DOMAIN
16 _LOGGER = logging.getLogger(__name__)
18 type AsekoConfigEntry = ConfigEntry[AsekoDataUpdateCoordinator]
22 """Class to manage fetching Aseko unit data from single endpoint."""
24 def __init__(self, hass: HomeAssistant, aseko: Aseko) ->
None:
25 """Initialize global Aseko unit data updater."""
36 """Fetch unit data."""
37 units = await self.
_aseko_aseko.get_units()
38 return {unit.serial_number: unit
for unit
in units}
dict[str, Unit] _async_update_data(self)
None __init__(self, HomeAssistant hass, Aseko aseko)