From 449afe9e6fadcd1d798675ae0f51a466a2981493 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Fri, 2 Aug 2024 11:58:07 +0200 Subject: [PATCH] Correct type annotation for `EntityPlatform.async_register_entity_service` (#123054) Correct type annotation for EntityPlatform.async_register_entity_service Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> --- homeassistant/helpers/entity_platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/helpers/entity_platform.py b/homeassistant/helpers/entity_platform.py index d868e582f8f..6774780f00f 100644 --- a/homeassistant/helpers/entity_platform.py +++ b/homeassistant/helpers/entity_platform.py @@ -985,7 +985,7 @@ class EntityPlatform: def async_register_entity_service( self, name: str, - schema: VolDictType | VolSchemaType | None, + schema: VolDictType | VolSchemaType, func: str | Callable[..., Any], required_features: Iterable[int] | None = None, supports_response: SupportsResponse = SupportsResponse.NONE,