From 4d02cccd113680698a15f2b737647ea0a74e508a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 24 Aug 2022 15:15:29 +0200 Subject: [PATCH] Fix typing of ConfigEntrySelector (#77259) --- homeassistant/helpers/selector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/helpers/selector.py b/homeassistant/helpers/selector.py index c2d221bcc78..7f7a4d16595 100644 --- a/homeassistant/helpers/selector.py +++ b/homeassistant/helpers/selector.py @@ -340,9 +340,9 @@ class ConfigEntrySelector(Selector): """Instantiate a selector.""" super().__init__(config) - def __call__(self, data: Any) -> dict[str, str]: + def __call__(self, data: Any) -> str: """Validate the passed selection.""" - config: dict[str, str] = vol.Schema(str)(data) + config: str = vol.Schema(str)(data) return config