Skip to content

Commit

Permalink
Merge pull request #23 from teleshoes/main
Browse files Browse the repository at this point in the history
Fix fan_speed type str=>int for air conditioners
  • Loading branch information
nbogojevic authored Jan 25, 2024
2 parents 3e3f459 + c6b2a2f commit d0ab0d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions midea_beautiful/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ def fan_speed(self) -> int:

@fan_speed.setter
def fan_speed(self, speed: int) -> None:
speed = int(speed)
self.data[13] &= ~0b01111111 # Clear the fan speed part
self.data[13] |= speed & 0b01111111

Expand Down

0 comments on commit d0ab0d6

Please sign in to comment.