diff --git a/custom_components/epex_spot_sensor/binary_sensor.py b/custom_components/epex_spot_sensor/binary_sensor.py index 79671c3..9e88100 100644 --- a/custom_components/epex_spot_sensor/binary_sensor.py +++ b/custom_components/epex_spot_sensor/binary_sensor.py @@ -16,7 +16,7 @@ ATTR_UNIT_OF_MEASUREMENT, CONF_ENTITY_ID, ) -from homeassistant.core import HomeAssistant, callback +from homeassistant.core import HomeAssistant, callback, Event from homeassistant.helpers import ( config_validation as cv, device_registry as dr, @@ -29,7 +29,6 @@ async_track_state_change_event, async_track_time_change, ) -from homeassistant.helpers.typing import EventType from .const import ( ATTR_DATA, @@ -173,7 +172,7 @@ def __init__( @callback def async_update_state( - event: EventType[EventStateChangedData], + event: Event[EventStateChangedData], ) -> None: """Handle price or duration sensor state changes.""" self._update_state()