mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user