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
|
@ -8,7 +8,7 @@ import voluptuous as vol
|
|||
|
||||
from homeassistant import exceptions
|
||||
from homeassistant.const import CONF_FOR, CONF_PLATFORM, CONF_VALUE_TEMPLATE
|
||||
from homeassistant.core import CALLBACK_TYPE, HassJob, HomeAssistant, callback
|
||||
from homeassistant.core import CALLBACK_TYPE, Event, HassJob, HomeAssistant, callback
|
||||
from homeassistant.helpers import config_validation as cv, template
|
||||
from homeassistant.helpers.event import (
|
||||
EventStateChangedData,
|
||||
|
@ -19,7 +19,7 @@ from homeassistant.helpers.event import (
|
|||
)
|
||||
from homeassistant.helpers.template import Template, result_as_boolean
|
||||
from homeassistant.helpers.trigger import TriggerActionType, TriggerInfo
|
||||
from homeassistant.helpers.typing import ConfigType, EventType
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -65,7 +65,7 @@ async def async_attach_trigger(
|
|||
|
||||
@callback
|
||||
def template_listener(
|
||||
event: EventType[EventStateChangedData] | None,
|
||||
event: Event[EventStateChangedData] | None,
|
||||
updates: list[TrackTemplateResult],
|
||||
) -> None:
|
||||
"""Listen for state changes and calls action."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue