mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Revert "Remove HomeAssistantType from typing.py as it is no...2 (#49617)
This reverts commit 39cb22374d20ec16e163bab07ce194b6a36c34bd. Added comment that HomeAssistantType is not to be used, but only kept in order not to break custom components.
This commit is contained in:
parent
46ef85f471
commit
49c23bad29
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user