Improve typing in core service registration (#63005)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet
2021-12-30 21:18:10 +01:00
committed by GitHub
parent 1320f27fd7
commit 9971831b51
3 changed files with 4 additions and 4 deletions

View File

@@ -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