mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Update Optional typing (2) [Py310] (#86419)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""Typing Helpers for Home Assistant."""
|
||||
from collections.abc import Mapping
|
||||
from enum import Enum
|
||||
from typing import Any, Optional, Union
|
||||
from typing import Any
|
||||
|
||||
import homeassistant.core
|
||||
|
||||
@@ -11,8 +11,8 @@ ContextType = homeassistant.core.Context
|
||||
DiscoveryInfoType = dict[str, Any]
|
||||
EventType = homeassistant.core.Event
|
||||
ServiceDataType = dict[str, Any]
|
||||
StateType = Union[None, str, int, float]
|
||||
TemplateVarsType = Optional[Mapping[str, Any]]
|
||||
StateType = str | int | float | None
|
||||
TemplateVarsType = Mapping[str, Any] | None
|
||||
|
||||
# Custom type for recorder Queries
|
||||
QueryType = Any
|
||||
|
Reference in New Issue
Block a user