Improve DataUpdateCoordinator typing in integrations (3) (#84657)
This commit is contained in:
parent
06db5476e4
commit
e170681016
13 changed files with 30 additions and 26 deletions
|
@ -26,7 +26,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
|||
|
||||
from .const import DOMAIN, POWERWALL_COORDINATOR
|
||||
from .entity import PowerWallEntity
|
||||
from .models import PowerwallData, PowerwallRuntimeData
|
||||
from .models import PowerwallRuntimeData
|
||||
|
||||
_METER_DIRECTION_EXPORT = "export"
|
||||
_METER_DIRECTION_IMPORT = "import"
|
||||
|
@ -114,7 +114,7 @@ async def async_setup_entry(
|
|||
powerwall_data: PowerwallRuntimeData = hass.data[DOMAIN][config_entry.entry_id]
|
||||
coordinator = powerwall_data[POWERWALL_COORDINATOR]
|
||||
assert coordinator is not None
|
||||
data: PowerwallData = coordinator.data
|
||||
data = coordinator.data
|
||||
entities: list[PowerWallEntity] = [
|
||||
PowerWallChargeSensor(powerwall_data),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue