Skip to content

Commit

Permalink
LED property fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Apr 18, 2018
1 parent a7cd150 commit d7f9f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miio/airconditioningcompanion.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Power(enum.Enum):

class Led(enum.Enum):
On = '0'
Off = 'a'
Off = 'A'


STORAGE_SLOT_ID = 30
Expand Down Expand Up @@ -152,7 +152,7 @@ def power(self) -> str:
@property
def led(self) -> str:
"""Current LED state."""
return 'on' if (int(self.data[1][8:9]) == Led.On.value) else 'off'
return 'on' if (self.data[1][8:9] == Led.On.value) else 'off'

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

0 comments on commit d7f9f93

Please sign in to comment.