mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 17:27:52 +00:00
Remove Xiaomi_miio select option validation (#53936)
This commit is contained in:
parent
1054419498
commit
1f9331f9db
@ -126,10 +126,6 @@ class XiaomiAirHumidifierSelector(XiaomiSelector):
|
||||
|
||||
async def async_select_option(self, option: str) -> None:
|
||||
"""Set an option of the miio device."""
|
||||
if option not in self.options:
|
||||
raise ValueError(
|
||||
f"Selection '{option}' is not a valid {self.entity_description.name}"
|
||||
)
|
||||
await self.async_set_led_brightness(option.title())
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user