mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix typing of ConfigEntrySelector (#77259)
This commit is contained in:
parent
7f4c5c04d3
commit
4d02cccd11
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user