mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 18:58:04 +02:00
Update typing (1) (#63922)
This commit is contained in:
@ -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]]
|
||||
|
||||
|
Reference in New Issue
Block a user