Fix typing of ConfigEntrySelector (#77259)

This commit is contained in:
Franck Nijhof
2022-08-24 15:15:29 +02:00
committed by GitHub
parent 7f4c5c04d3
commit 4d02cccd11

View File

@@ -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