1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-21 14:43:30 +01:00

Fix MP1's check_power_raw() annotation (#485)

This method returns an integer.
This commit is contained in:
Felipe Martins Diel 2020-11-27 17:16:52 -03:00 committed by Felipe Martins Diel
parent bdc5432e2e
commit 1b3fd16321

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