mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-21 22:51:41 +01:00
Replace bytes with bytearray
This commit is contained in:
parent
1dfdb065d0
commit
dec2b684d5
@ -603,7 +603,7 @@ class rm(device):
|
||||
|
||||
def send_data(self, data):
|
||||
packet = bytearray(self._code_sending_header)
|
||||
packet += bytes([0x02, 0x00, 0x00, 0x00])
|
||||
packet += bytearray([0x02, 0x00, 0x00, 0x00])
|
||||
packet += data
|
||||
response = self.send_packet(0x6a, packet)
|
||||
check_error(response[0x22:0x24])
|
||||
|
Loading…
Reference in New Issue
Block a user