Revert "Remove HomeAssistantType from typing.py as it is no...2 (#49617)

This reverts commit 39cb22374d.

Added comment that HomeAssistantType is not to be used, but only
kept in order not to break custom components.
This commit is contained in:
jan iversen
2021-04-24 21:10:07 +02:00
committed by GitHub
parent 46ef85f471
commit 49c23bad29

View File

@ -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