From e9d55e366c502b6a9ba66f3348ddac4b4e78d2e2 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Fri, 27 Oct 2017 22:07:35 +0200 Subject: [PATCH] API call set_favorite_level (method: set_level_favorite) updated. Fixes #103. (#104) --- 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."""