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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,9 +340,9 @@ class ConfigEntrySelector(Selector):
"""Instantiate a selector.""" """Instantiate a selector."""
super().__init__(config) super().__init__(config)
def __call__(self, data: Any) -> dict[str, str]: def __call__(self, data: Any) -> str:
"""Validate the passed selection.""" """Validate the passed selection."""
config: dict[str, str] = vol.Schema(str)(data) config: str = vol.Schema(str)(data)
return config return config