code: def register_alarm(self, alarm):
          
          for alarm in listify(alarm):
              if alarm not in self._alarms:
                  self._set('alarm', alarm, multi=True)
                  self._alarms.append(alarm)
  
          return self._section
docs: Register (create) an alarm.
  
          :param AlarmType|list[AlarmType] alarm: Alarm.