mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Don't double-validate KNX select options (#54020)
This commit is contained in:
parent
c3a509bdd8
commit
4d6c95a126
@ -97,7 +97,5 @@ class KNXSelect(KnxEntity, SelectEntity, RestoreEntity):
|
|||||||
|
|
||||||
async def async_select_option(self, option: str) -> None:
|
async def async_select_option(self, option: str) -> None:
|
||||||
"""Change the selected option."""
|
"""Change the selected option."""
|
||||||
payload = self._option_payloads.get(option)
|
payload = self._option_payloads[option]
|
||||||
if payload is None:
|
|
||||||
raise ValueError(f"Invalid option for {self.entity_id}: {option}")
|
|
||||||
await self._device.set(payload)
|
await self._device.set(payload)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user