1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-22 15:10:12 +01:00

Merge pull request #485 from felipediel/patch-28

Fix mp1.check_power_raw() annotation
This commit is contained in:
Felipe Martins Diel 2021-01-09 02:17:22 -03:00 committed by GitHub
commit c9b48226e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ class mp1(device):
sid_mask = 0x01 << (sid - 1)
self.set_power_mask(sid_mask, state)
def check_power_raw(self) -> bool:
def check_power_raw(self) -> int:
"""Return the power state of the device in raw format."""
packet = bytearray(16)
packet[0x00] = 0x0A