mirror of
https://github.com/home-assistant/core.git
synced 2025-11-16 06:20:07 +00:00
Improve typing in core service registration (#63005)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user