2017-05-02 18:18:47 +02:00
|
|
|
"""Typing Helpers for Home Assistant."""
|
2019-01-21 01:03:12 +02:00
|
|
|
from typing import Dict, Any, Tuple, Optional
|
2016-07-31 22:56:57 +02:00
|
|
|
|
2016-08-30 18:22:52 +02:00
|
|
|
import homeassistant.core
|
2016-08-07 18:26:35 -05:00
|
|
|
|
2016-07-31 22:56:57 +02:00
|
|
|
# pylint: disable=invalid-name
|
2016-08-07 18:26:35 -05:00
|
|
|
|
2016-08-30 18:22:52 +02:00
|
|
|
GPSType = Tuple[float, float]
|
|
|
|
ConfigType = Dict[str, Any]
|
2019-06-15 01:48:21 +03:00
|
|
|
ContextType = homeassistant.core.Context
|
2019-04-20 00:54:48 +03:00
|
|
|
EventType = homeassistant.core.Event
|
2016-08-30 18:22:52 +02:00
|
|
|
HomeAssistantType = homeassistant.core.HomeAssistant
|
2019-06-15 01:48:21 +03:00
|
|
|
ServiceCallType = homeassistant.core.ServiceCall
|
2018-02-28 22:59:14 +01:00
|
|
|
ServiceDataType = Dict[str, Any]
|
2019-01-21 01:03:12 +02:00
|
|
|
TemplateVarsType = Optional[Dict[str, Any]]
|
2016-07-31 22:56:57 +02:00
|
|
|
|
2016-08-30 18:22:52 +02:00
|
|
|
# Custom type for recorder Queries
|
|
|
|
QueryType = Any
|