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

Replace bytes with bytearray

This commit is contained in:
Felipe Martins Diel 2020-05-20 21:00:11 -03:00
parent 1dfdb065d0
commit dec2b684d5

View File

@ -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])