Replace EventType with Event [t-z] (#112742)
This commit is contained in:
parent
84c44c1835
commit
3db28d46b2
10 changed files with 31 additions and 34 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue