code: def _post_init(self):
          
          self._led_type_code = self.manager.get_typecode('LED')
          self.device_path = os.path.realpath(os.path.join(self.path, 'device'))
          if '::' in self.name:
              chardev, code_name = self.name.split('::')
              if code_name in self.manager.codes['LED_type_codes']:
                  self.code = self.manager.codes['LED_type_codes'][code_name]
              try:
                  event_number = chardev.split('input')[1]
              except IndexError:
                  print("Failed with", self.name)
                  raise
              else:
                  self._character_device_path = '/dev/input/event' + event_number
                  self._match_device()
docs: Set up the device path and type code.