Improve typing in core service registration (#63005)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
1320f27fd7
commit
9971831b51
3 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue