Cleanup EventType typing (#97136)
This commit is contained in:
parent
4161f53bea
commit
995c29e052
10 changed files with 51 additions and 28 deletions
|
@ -26,7 +26,7 @@ from homeassistant.const import (
|
|||
EVENT_HOMEASSISTANT_START,
|
||||
STATE_UNKNOWN,
|
||||
)
|
||||
from homeassistant.core import Context, CoreState, Event, HomeAssistant, State, callback
|
||||
from homeassistant.core import Context, CoreState, HomeAssistant, State, callback
|
||||
from homeassistant.exceptions import TemplateError
|
||||
from homeassistant.util.json import JSON_DECODE_EXCEPTIONS, json_loads
|
||||
|
||||
|
@ -131,7 +131,7 @@ class _TemplateAttribute:
|
|||
@callback
|
||||
def handle_result(
|
||||
self,
|
||||
event: Event | None,
|
||||
event: EventType[EventStateChangedData] | None,
|
||||
template: Template,
|
||||
last_result: str | None | TemplateError,
|
||||
result: str | TemplateError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue