code: def fetch_attributes(self, event, channel):
          
          try:
              for sensor in self.event_states[event]:
                  if sensor[1] == int(channel):
                      return sensor
          except KeyError:
              return None
docs: Returns attribute list for a given event/channel.