Replace EventType with Event [t-z] (#112742)

This commit is contained in:
Marc Mueller 2024-03-08 19:37:26 +01:00 committed by GitHub
parent 84c44c1835
commit 3db28d46b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 31 additions and 34 deletions

View file

@ -22,7 +22,7 @@ from homeassistant.const import (
STATE_UNAVAILABLE,
STATE_UNKNOWN,
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.core import Event, HomeAssistant, callback
from homeassistant.helpers import (
config_validation as cv,
device_registry as dr,
@ -34,7 +34,7 @@ from homeassistant.helpers.event import (
EventStateChangedData,
async_track_state_change_event,
)
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType, EventType
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
from .const import CONF_HYSTERESIS, CONF_LOWER, CONF_UPPER
@ -215,7 +215,7 @@ class ThresholdSensor(BinarySensorEntity):
@callback
def async_threshold_sensor_state_listener(
event: EventType[EventStateChangedData],
event: Event[EventStateChangedData],
) -> None:
"""Handle sensor state changes."""
_update_sensor_state()