def NackSetResult(self, nack_reason, **kwargs): """A helper method which returns a NackSetResult for the current PID.""" return NackSetResult(self.pid.value, nack_reason, **kwargs)
def UnsupportedSetNacks(pid): """Responders use either NR_UNSUPPORTED_COMMAND_CLASS or NR_UNKNOWN_PID.""" return [ NackSetResult(pid.value, RDMNack.NR_UNSUPPORTED_COMMAND_CLASS), NackSetResult(pid.value, RDMNack.NR_UNKNOWN_PID), ]