diff --git a/homeassistant/components/opower/coordinator.py b/homeassistant/components/opower/coordinator.py index 4d40bb3356b..c331f45bc49 100644 --- a/homeassistant/components/opower/coordinator.py +++ b/homeassistant/components/opower/coordinator.py @@ -32,7 +32,7 @@ from .const import CONF_UTILITY, DOMAIN _LOGGER = logging.getLogger(__name__) -class OpowerCoordinator(DataUpdateCoordinator): +class OpowerCoordinator(DataUpdateCoordinator[dict[str, Forecast]]): """Handle fetching Opower data, updating sensors and inserting statistics.""" def __init__( diff --git a/homeassistant/components/opower/sensor.py b/homeassistant/components/opower/sensor.py index ef8d8eb884f..36f88a36e8a 100644 --- a/homeassistant/components/opower/sensor.py +++ b/homeassistant/components/opower/sensor.py @@ -170,7 +170,7 @@ async def async_setup_entry( coordinator: OpowerCoordinator = hass.data[DOMAIN][entry.entry_id] entities: list[OpowerSensor] = [] - forecasts: list[Forecast] = coordinator.data.values() + forecasts = coordinator.data.values() for forecast in forecasts: device_id = f"{coordinator.api.utility.subdomain()}_{forecast.account.utility_account_id}" device = DeviceInfo(