Skip to content

Commit

Permalink
Rename state to power in get_ac_info()
Browse files Browse the repository at this point in the history
  • Loading branch information
felipediel committed Jan 29, 2021
1 parent 0e44f71 commit 1ef9eec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions broadlink/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def get_ac_info(self) -> dict:
Returns:
dict:
state (bool): power
power (bool): power
ambient_temp (float): ambient temperature
"""
resp = self._send(2)
Expand All @@ -393,7 +393,7 @@ def get_ac_info(self) -> dict:
logging.debug("Received resp:\n%s", resp.hex(' '))

ac_info = {}
ac_info["state"] = resp[0x1] & 1
ac_info["power"] = resp[0x1] & 1

ambient_temp = resp[0x5] & 0b11111, resp[0x15] & 0b11111
if any(ambient_temp):
Expand Down

0 comments on commit 1ef9eec

Please sign in to comment.