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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -1330,7 +1330,7 @@ class ServiceRegistry:
self,
domain: str,
service: str,
service_func: Callable,
service_func: Callable[[ServiceCall], Awaitable[None] | None],
schema: vol.Schema | None = None,
) -> None:
"""
@ -1347,7 +1347,7 @@ class ServiceRegistry:
self,
domain: str,
service: str,
service_func: Callable,
service_func: Callable[[ServiceCall], Awaitable[None] | None],
schema: vol.Schema | None = None,
) -> None:
"""