Skip to content

Commit

Permalink
Static turn off command fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Feb 26, 2018
1 parent 1db504a commit 9c6439a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miio/airconditioningcompanion.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def send_configuration(self, model: str, power: Power,
swing_mode: SwingMode):

# Static turn off command available?
if (power is False) and (model in DEVICE_COMMAND_TEMPLATES) and \
if (power is Power.Off) and (model in DEVICE_COMMAND_TEMPLATES) and \
(POWER_OFF in DEVICE_COMMAND_TEMPLATES[model]):
return self.send_command(
model + DEVICE_COMMAND_TEMPLATES[model][POWER_OFF])
Expand Down

0 comments on commit 9c6439a

Please sign in to comment.