pub async fn get_nonactive_sensor_entry( sensors: &mut HashMap<String, Arc<Mutex<Sensor>>>, key: String) -> Option<Entry<'_, String, Arc<Mutex<Sensor>>>>
Find a SensorMap entry for the given key.
SensorMap
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.
Some
None