mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 19:09:32 +00:00
Improve typing in core service registration (#63005)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
@@ -198,7 +198,7 @@ class EntityComponent:
|
||||
if isinstance(schema, dict):
|
||||
schema = cv.make_entity_service_schema(schema)
|
||||
|
||||
async def handle_service(call: Callable) -> None:
|
||||
async def handle_service(call: ServiceCall) -> None:
|
||||
"""Handle the service."""
|
||||
await self.hass.helpers.service.entity_service_call(
|
||||
self._platforms.values(), func, call, required_features
|
||||
|
||||
Reference in New Issue
Block a user