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."""