Skip to content

Commit

Permalink
Fix set_mode_and_speed mode for airdog airpurifier (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeypetrenko authored Apr 8, 2021
1 parent 780a714 commit ca7f78e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miio/airpurifier_airdog.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def set_mode_and_speed(self, mode: OperationMode, speed: int = 1):
if speed < 1 or speed > max_speed:
raise AirDogException("Invalid speed: %s" % speed)

return self.send("set_wind", [OperationModeMapping[mode.name], speed])
return self.send("set_wind", [OperationModeMapping[mode.name].value, speed])

@command(
click.argument("lock", type=bool),
Expand Down

0 comments on commit ca7f78e

Please sign in to comment.