1 """Support for OVO Energy."""
3 from __future__
import annotations
5 from ovoenergy
import OVOEnergy
6 from ovoenergy.models
import OVODailyUsage
11 DataUpdateCoordinator,
14 from .const
import DOMAIN
18 """Defines a base OVO Energy entity."""
20 _attr_has_entity_name =
True
24 coordinator: DataUpdateCoordinator[OVODailyUsage],
27 """Initialize the OVO Energy entity."""
33 """Defines a OVO Energy device entity."""
37 """Return device information about this OVO Energy instance."""
39 entry_type=DeviceEntryType.SERVICE,
40 identifiers={(DOMAIN, self.
_client_client.account_id)},
41 manufacturer=
"OVO Energy",
42 name=self.
_client_client.username,
DeviceInfo device_info(self)
None __init__(self, DataUpdateCoordinator[OVODailyUsage] coordinator, OVOEnergy client)