mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +00:00
Fix typing for entity_platform.async_register_entity_service (#103777)
This commit is contained in:
parent
f0a455e5c7
commit
1a3475ea60
@ -813,7 +813,7 @@ class EntityPlatform:
|
|||||||
def async_register_entity_service(
|
def async_register_entity_service(
|
||||||
self,
|
self,
|
||||||
name: str,
|
name: str,
|
||||||
schema: dict[str, Any] | vol.Schema,
|
schema: dict[str | vol.Marker, Any] | vol.Schema,
|
||||||
func: str | Callable[..., Any],
|
func: str | Callable[..., Any],
|
||||||
required_features: Iterable[int] | None = None,
|
required_features: Iterable[int] | None = None,
|
||||||
supports_response: SupportsResponse = SupportsResponse.NONE,
|
supports_response: SupportsResponse = SupportsResponse.NONE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user