Don't double-validate KNX select options (#54020)
This commit is contained in:
parent
c3a509bdd8
commit
4d6c95a126
1 changed files with 1 additions and 3 deletions
|
@ -97,7 +97,5 @@ class KNXSelect(KnxEntity, SelectEntity, RestoreEntity):
|
|||
|
||||
async def async_select_option(self, option: str) -> None:
|
||||
"""Change the selected option."""
|
||||
payload = self._option_payloads.get(option)
|
||||
if payload is None:
|
||||
raise ValueError(f"Invalid option for {self.entity_id}: {option}")
|
||||
payload = self._option_payloads[option]
|
||||
await self._device.set(payload)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue