Fix schema typing on async_register_entity_service (#87250)

This commit is contained in:
Franck Nijhof 2023-02-03 11:25:02 +01:00 committed by GitHub
parent 91668f8599
commit b8a1f87073
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,7 @@ class EntityComponent(Generic[_EntityT]):
def async_register_entity_service(
self,
name: str,
schema: dict[str, Any] | vol.Schema,
schema: dict[str | vol.Marker, Any] | vol.Schema,
func: str | Callable[..., Any],
required_features: list[int] | None = None,
) -> None: