mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +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:
|
async def async_select_option(self, option: str) -> None:
|
||||||
"""Set an option of the miio device."""
|
"""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())
|
await self.async_set_led_brightness(option.title())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user