1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-14 03:20:14 +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): def send_data(self, data):
packet = bytearray(self._code_sending_header) packet = bytearray(self._code_sending_header)
packet += bytes([0x02, 0x00, 0x00, 0x00]) packet += bytearray([0x02, 0x00, 0x00, 0x00])
packet += data packet += data
response = self.send_packet(0x6a, packet) response = self.send_packet(0x6a, packet)
check_error(response[0x22:0x24]) check_error(response[0x22:0x24])