(self, name)
return None
Returns the sensor with the given name, or None if not exist.
Returns the sensor with the given name, or None if not exist.
Returns the sensor with the given name or None if not exist .
def sensor_by_name(self, name):
    """Returns the sensor with the given name, or None if not exist."""
    for sensor_ in self.all_sensors():
      if sensor_.get_name() == name:
        return sensor_
    return None
def sensor_by_name ( self , name ) : for sensor_ in self . all_sensors ( ) : if sensor_ . get_name ( ) == name : return sensor_ return None