mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Fix typing of ConfigEntrySelector (#77259)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user