Skip to content

Commit 1ef9eec

Browse files
committed
Rename state to power in get_ac_info()
1 parent 0e44f71 commit 1ef9eec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

broadlink/climate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def get_ac_info(self) -> dict:
383383
384384
Returns:
385385
dict:
386-
state (bool): power
386+
power (bool): power
387387
ambient_temp (float): ambient temperature
388388
"""
389389
resp = self._send(2)
@@ -393,7 +393,7 @@ def get_ac_info(self) -> dict:
393393
logging.debug("Received resp:\n%s", resp.hex(' '))
394394

395395
ac_info = {}
396-
ac_info["state"] = resp[0x1] & 1
396+
ac_info["power"] = resp[0x1] & 1
397397

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

0 commit comments

Comments
 (0)