pub async fn deactivate(sensors: &mut HashMap<String, Arc<Mutex<Sensor>>>)
Expand description

Iterate through a sensor map and deactivate all the sensors whose power_state no longer matches the current host power state.