Skip to content

Commit

Permalink
fix enm to list
Browse files Browse the repository at this point in the history
  • Loading branch information
mac-zhou committed Jul 15, 2022
1 parent 29522b2 commit 06167ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msmart/device/AC/appliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ def off_timer(self):

@property
def supported_operation_modes(self):
return IntEnumHelper.names(self._supported_op_modes)
return self._supported_op_modes

@property
def supported_swing_modes(self):
return IntEnumHelper.names(self._supported_swing_modes)
return self._supported_swing_modes

2 comments on commit 06167ab

@mill1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you verify this change against the HA integration? If I recall correctly HA crashed if it was passed the enum objects instead of strings.

@mill1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so it didn't crash but the lists aren't populated
image

Please sign in to comment.