Skip to content

Commit

Permalink
fix HA warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mampfes committed May 10, 2024
1 parent d2bca5e commit 00d429b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom_components/epex_spot_sensor/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -29,7 +29,6 @@
async_track_state_change_event,
async_track_time_change,
)
from homeassistant.helpers.typing import EventType

from .const import (
ATTR_DATA,
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 00d429b

Please sign in to comment.