mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Remove ServiceCallType alias from codebase (#49844)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user