code: def build(self):
          ''' Build Packet for sending to EnOcean controller '''
          data_length = len(self.data)
          ords = [0x55, (data_length >> 8) & 0xFF, data_length & 0xFF, len(self.optional), int(self.packet_type)]
          ords.append(crc8.calc(ords[1:5]))
          ords.extend(self.data)
          ords.extend(self.optional)
          ords.append(crc8.calc(ords[6:]))
          return ordf build(self):
          ''' Build Packet for sending to EnOcean controller '''
          data_length = len(self.data)
          ords = [0x55, (data_length >> 8) & 0xFF, data_length & 0xFF, len(self.optional), int(self.packet_type)]
          ords.append(crc8.calc(ords[1:5]))
          ords.extend(self.data)
          ords.extend(self.optional)
          ords.append(crc8.calc(ords[6:]))
          return ords
docs: Build Packet for sending to EnOcean controller