Improve DataUpdateCoordinator typing in integrations (3) (#84657)

This commit is contained in:
Marc Mueller 2022-12-27 22:49:23 +01:00 committed by GitHub
parent 06db5476e4
commit e170681016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 30 additions and 26 deletions

View file

@ -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),
]