From e6c49f978517dc27c9a7fe9702fa4c5fafe93d2d Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Mon, 4 Sep 2017 23:54:53 +0200 Subject: [PATCH] Air purifier: Set favorite level fixed. (#55) --- mirobo/airpurifier.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirobo/airpurifier.py b/mirobo/airpurifier.py index d45bc0ca7..9423eef07 100644 --- a/mirobo/airpurifier.py +++ b/mirobo/airpurifier.py @@ -65,8 +65,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 16. - return self.send("favorite_level", [level]) # 0 ... 16 + # should be between 0 and 17. + return self.send("set_favorite_level", [level]) # 0 ... 17 def set_led_brightness(self, brightness: LedBrightness): """Set led brightness."""