Cleanup EventType typing (#97136)

This commit is contained in:
Marc Mueller 2023-07-24 13:18:38 +02:00 committed by GitHub
parent 4161f53bea
commit 995c29e052
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 51 additions and 28 deletions

View file

@ -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,