def assignKey(self, key, sequence):
    self.sendToDevice((((CommandCode.ASSIGN.value + ' ') + key.value) + ((' ' + ' '.join(sequence)) if (len(sequence) > 0) else '')))
def assignKey(self, key, sequence):
    self.sendToDevice((((CommandCode.ASSIGN.value + ' ') + key.value) + ((' ' + ' '.join(sequence)) if (len(sequence) > 0) else )))