Replace EventType annotations with Event (#96426)

This commit is contained in:
Marc Mueller
2023-07-18 08:51:06 +02:00
committed by GitHub
parent 4bf23fac6f
commit 9e67bccb89
6 changed files with 12 additions and 15 deletions

View File

@ -9,7 +9,6 @@ GPSType = tuple[float, float]
ConfigType = dict[str, Any]
ContextType = homeassistant.core.Context
DiscoveryInfoType = dict[str, Any]
EventType = homeassistant.core.Event
ServiceDataType = dict[str, Any]
StateType = str | int | float | None
TemplateVarsType = Mapping[str, Any] | None
@ -33,4 +32,5 @@ UNDEFINED = UndefinedType._singleton # pylint: disable=protected-access
# that may rely on them.
# In due time they will be removed.
HomeAssistantType = homeassistant.core.HomeAssistant
EventType = homeassistant.core.Event
ServiceCallType = homeassistant.core.ServiceCall