code: def register_device(self, dev_name):
          
          if dev_name not in self.devices:
              self.devices.append(dev_name)
          group_name = self.system.__dict__[dev_name]._group
          if group_name not in self.group.keys():
              self.group[group_name] = {}
docs: register a device to the device list