pub async fn get_nonactive_sensor_entry(
    sensors: &mut HashMap<String, Arc<Mutex<Sensor>>>,
    key: String
) -> Option<Entry<'_, String, Arc<Mutex<Sensor>>>>
Expand description

Find a SensorMap entry for the given key.

Returns Some if there was no previous entry for key or if the sensor for key is inactive. If there is an active sensor for key, returns None.