Skip to content

Commit

Permalink
API call set_favorite_level (method: set_level_favorite) updated. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi authored and rytilahti committed Oct 27, 2017
1 parent c859d51 commit e9d55e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miio/airpurifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit e9d55e3

Please sign in to comment.