mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Enable Ruff D212 (#87347)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
"""
|
||||
Core components of Home Assistant.
|
||||
"""Core components of Home Assistant.
|
||||
|
||||
Home Assistant is a Home Automation framework for observing the state
|
||||
of entities and react to changes.
|
||||
@@ -1577,8 +1576,7 @@ class ServiceRegistry:
|
||||
service_func: Callable[[ServiceCall], Coroutine[Any, Any, None] | None],
|
||||
schema: vol.Schema | None = None,
|
||||
) -> None:
|
||||
"""
|
||||
Register a service.
|
||||
"""Register a service.
|
||||
|
||||
Schema is called to coerce and validate the service data.
|
||||
"""
|
||||
@@ -1594,8 +1592,7 @@ class ServiceRegistry:
|
||||
service_func: Callable[[ServiceCall], Coroutine[Any, Any, None] | None],
|
||||
schema: vol.Schema | None = None,
|
||||
) -> None:
|
||||
"""
|
||||
Register a service.
|
||||
"""Register a service.
|
||||
|
||||
Schema is called to coerce and validate the service data.
|
||||
|
||||
@@ -1652,8 +1649,7 @@ class ServiceRegistry:
|
||||
limit: float | None = SERVICE_CALL_LIMIT,
|
||||
target: dict[str, Any] | None = None,
|
||||
) -> bool | None:
|
||||
"""
|
||||
Call a service.
|
||||
"""Call a service.
|
||||
|
||||
See description of async_call for details.
|
||||
"""
|
||||
@@ -1674,8 +1670,7 @@ class ServiceRegistry:
|
||||
limit: float | None = SERVICE_CALL_LIMIT,
|
||||
target: dict[str, Any] | None = None,
|
||||
) -> bool | None:
|
||||
"""
|
||||
Call a service.
|
||||
"""Call a service.
|
||||
|
||||
Specify blocking=True to wait until service is executed.
|
||||
Waits a maximum of limit, which may be None for no timeout.
|
||||
|
||||
Reference in New Issue
Block a user