mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-22 07:00:12 +01:00
Fix MP1's check_power_raw() annotation (#485)
This method returns an integer.
This commit is contained in:
parent
bdc5432e2e
commit
1b3fd16321
@ -37,7 +37,7 @@ class mp1(device):
|
|||||||
sid_mask = 0x01 << (sid - 1)
|
sid_mask = 0x01 << (sid - 1)
|
||||||
self.set_power_mask(sid_mask, state)
|
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."""
|
"""Return the power state of the device in raw format."""
|
||||||
packet = bytearray(16)
|
packet = bytearray(16)
|
||||||
packet[0x00] = 0x0A
|
packet[0x00] = 0x0A
|
||||||
|
Loading…
Reference in New Issue
Block a user