Update typing (1) (#63922)
This commit is contained in:
parent
4e2cd1bec0
commit
d3b7bd25ef
11 changed files with 30 additions and 30 deletions
|
@ -1,15 +1,15 @@
|
|||
"""Typing Helpers for Home Assistant."""
|
||||
from enum import Enum
|
||||
from typing import Any, Dict, Mapping, Optional, Tuple, Union
|
||||
from typing import Any, Mapping, Optional, Union
|
||||
|
||||
import homeassistant.core
|
||||
|
||||
GPSType = Tuple[float, float]
|
||||
ConfigType = Dict[str, Any]
|
||||
GPSType = tuple[float, float]
|
||||
ConfigType = dict[str, Any]
|
||||
ContextType = homeassistant.core.Context
|
||||
DiscoveryInfoType = Dict[str, Any]
|
||||
DiscoveryInfoType = dict[str, Any]
|
||||
EventType = homeassistant.core.Event
|
||||
ServiceDataType = Dict[str, Any]
|
||||
ServiceDataType = dict[str, Any]
|
||||
StateType = Union[None, str, int, float]
|
||||
TemplateVarsType = Optional[Mapping[str, Any]]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue