code: def supported_sensor(sensor):
      
      if sensor['type'] in DECONZ_BINARY_SENSOR + DECONZ_SENSOR + OTHER_SENSOR:
          return True
      _LOGGER.info('Unsupported sensor type %s (%s)',
                   sensor['type'], sensor['name'])
      return False
docs: Check if sensor is supported by pydeconz.