Remove Xiaomi_miio select option validation (#53936)

pull/53577/head^2
Jan Bouwhuis 2021-08-04 14:00:18 +02:00 committed by GitHub
parent 1054419498
commit 1f9331f9db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -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