From 49c23bad29785fd541f9c2e0c09ae3dad795f22a Mon Sep 17 00:00:00 2001 From: jan iversen Date: Sat, 24 Apr 2021 21:10:07 +0200 Subject: [PATCH] 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. --- homeassistant/helpers/typing.py | 6 ++++++ 1 file changed, 6 insertions(+) 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