From d2685e9e563d70cc0017ee6a62c9afe450ef2a1b Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Fri, 27 Oct 2017 09:33:34 +0200 Subject: [PATCH] API call set_favorite_level (method: set_level_favorite) updated. Fixes #103. --- miio/airpurifier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miio/airpurifier.py b/miio/airpurifier.py index bd4b89674..d78449eba 100644 --- a/miio/airpurifier.py +++ b/miio/airpurifier.py @@ -174,8 +174,8 @@ def set_favorite_level(self, level: int): """Set favorite level.""" # Set the favorite level used when the mode is `favorite`, - # should be between 0 and 17. - return self.send("set_favorite_level", [level]) # 0 ... 17 + # should be between 0 and 16. + return self.send("set_level_favorite", [level]) # 0 ... 16 def set_led_brightness(self, brightness: LedBrightness): """Set led brightness."""