diff --git a/homeassistant/helpers/typing.py b/homeassistant/helpers/typing.py index 54e63ab49ef..58f999c5adc 100644 --- a/homeassistant/helpers/typing.py +++ b/homeassistant/helpers/typing.py @@ -14,6 +14,12 @@ ServiceDataType = Dict[str, Any] StateType = Union[None, str, int, float] TemplateVarsType = Optional[Mapping[str, Any]] +# HomeAssistantType is not to be used, +# It is not present in the core code base. +# It is kept in order not to break custom components +# In due time it will be removed. +HomeAssistantType = homeassistant.core.HomeAssistant + # Custom type for recorder Queries QueryType = Any