code: def supports_sensor(self, sensor):
          
          if sensor and not (set(self.info.get("sensors")) &
                             set(listify_string(sensor))):
              return False
          else:
              return True
docs: Check if *sensor* is supported.
  
          Returns True is *sensor* is None.