1 """Zeversolar coordinator."""
3 from __future__
import annotations
5 from datetime
import timedelta
15 from .const
import DOMAIN
17 _LOGGER = logging.getLogger(__name__)
21 """Data update coordinator."""
23 def __init__(self, hass: HomeAssistant, entry: ConfigEntry) ->
None:
24 """Initialize the coordinator."""
31 self.
_client_client = zeversolar.ZeverSolarClient(host=entry.data[CONF_HOST])
34 """Fetch the latest data from the source."""
35 return await self.
hasshass.async_add_executor_job(self.
_client_client.get_data)
zeversolar.ZeverSolarData _async_update_data(self)
None __init__(self, HomeAssistant hass, ConfigEntry entry)