diff --git a/broadlink/__init__.py b/broadlink/__init__.py index a8af0fa..74e8e01 100644 --- a/broadlink/__init__.py +++ b/broadlink/__init__.py @@ -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])