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 23, 2021
1 parent 815b388 commit 59a308e
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 @@ -386,7 +386,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 @@ -396,7 +396,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 59a308e

Please sign in to comment.