Remove ServiceCallType alias from codebase (#49844)

This commit is contained in:
Franck Nijhof
2021-05-02 00:15:27 +02:00
committed by GitHub
parent 7ac05110ca
commit 1b5596b4c2
10 changed files with 42 additions and 49 deletions

View File

@ -9,17 +9,10 @@ ConfigType = Dict[str, Any]
ContextType = homeassistant.core.Context
DiscoveryInfoType = Dict[str, Any]
EventType = homeassistant.core.Event
ServiceCallType = homeassistant.core.ServiceCall
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
@ -31,3 +24,11 @@ class UndefinedType(Enum):
UNDEFINED = UndefinedType._singleton # pylint: disable=protected-access
# The following types should not used and
# are not present in the core code base.
# They are kept in order not to break custom integrations
# that may rely on them.
# In due time they will be removed.
HomeAssistantType = homeassistant.core.HomeAssistant
ServiceCallType = homeassistant.core.ServiceCall