Skip to content

Commit a05efe1

Browse files
committed
Add detail on return value for get_state()
1 parent 660c226 commit a05efe1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

broadlink/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,11 @@ def __init__(self, host, mac, devtype):
358358
self.type = "BG1"
359359

360360
def get_state(self):
361-
"""Get state of device"""
361+
"""Get state of device.
362+
363+
Returns:
364+
dict: Dictionary of current state
365+
eg. `{"pwr":1,"pwr1":1,"pwr2":0,"maxworktime":60,"maxworktime1":60,"maxworktime2":0,"idcbrightness":50}`"""
362366
packet = self._encode(1, b'{}')
363367
response = self.send_packet(0x6a, packet)
364368
return self._decode(response)

0 commit comments

Comments
 (0)