Skip to content

Commit

Permalink
fix powerstate invalid
Browse files Browse the repository at this point in the history
Fix invalid bug
  • Loading branch information
roiff authored Dec 11, 2017
1 parent 151ec30 commit 03fda91
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 @@ -42,7 +42,7 @@ def air_condition_model(self) -> str:
@property
def power(self) -> str:
"""Current power state."""
return 'on' if (self.data[1][2:3] == 1) else 'off'
return 'on' if (self.data[1][2:3] == '1') else 'off'

@property
def is_on(self) -> bool:
Expand Down

0 comments on commit 03fda91

Please sign in to comment.