From df19172e565c264f211b8c1faa9540b39ff674e6 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sat, 28 Oct 2017 10:54:11 +0200 Subject: [PATCH] Limits of the favorite level updated. Values between 0 and 16 will be accepted. (#10186) --- homeassistant/components/fan/xiaomi_miio.py | 2 +- homeassistant/components/fan/xiaomi_miio_services.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/fan/xiaomi_miio.py b/homeassistant/components/fan/xiaomi_miio.py index a69e069ffea..3b0e0385f13 100644 --- a/homeassistant/components/fan/xiaomi_miio.py +++ b/homeassistant/components/fan/xiaomi_miio.py @@ -69,7 +69,7 @@ SERVICE_SCHEMA_LED_BRIGHTNESS = AIRPURIFIER_SERVICE_SCHEMA.extend({ SERVICE_SCHEMA_FAVORITE_LEVEL = AIRPURIFIER_SERVICE_SCHEMA.extend({ vol.Required(ATTR_LEVEL): - vol.All(vol.Coerce(int), vol.Clamp(min=0, max=17)) + vol.All(vol.Coerce(int), vol.Clamp(min=0, max=16)) }) SERVICE_TO_METHOD = { diff --git a/homeassistant/components/fan/xiaomi_miio_services.yaml b/homeassistant/components/fan/xiaomi_miio_services.yaml index 10a6009d9f1..93f6318e60b 100644 --- a/homeassistant/components/fan/xiaomi_miio_services.yaml +++ b/homeassistant/components/fan/xiaomi_miio_services.yaml @@ -40,7 +40,7 @@ xiaomi_miio_set_favorite_level: example: 'fan.xiaomi_air_purifier' level: - description: Level, between 0 and 17. + description: Level, between 0 and 16. example: '1' xiaomi_miio_set_led_brightness: