summaryrefslogtreecommitdiffstats
path: root/src/app/data_harvester/temperature.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/data_harvester/temperature.rs')
-rw-r--r--src/app/data_harvester/temperature.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/data_harvester/temperature.rs b/src/app/data_harvester/temperature.rs
index c3925ceb..470b1dbb 100644
--- a/src/app/data_harvester/temperature.rs
+++ b/src/app/data_harvester/temperature.rs
@@ -64,6 +64,7 @@ pub async fn get_temperature_data(
temp_type: &TemperatureType, actually_get: bool,
) -> crate::utils::error::Result<Option<Vec<TempHarvest>>> {
use futures::StreamExt;
+ use heim::units::thermodynamic_temperature;
if !actually_get {
return Ok(None);
@@ -71,8 +72,7 @@ pub async fn get_temperature_data(
let mut temperature_vec: Vec<TempHarvest> = Vec::new();
- use heim::units::thermodynamic_temperature;
- let mut sensor_data = heim::sensors::temperatures();
+ let mut sensor_data = heim::sensors::temperatures().boxed_local();
while let Some(sensor) = sensor_data.next().await {
if let Ok(sensor) = sensor {
temperature_vec.push(TempHarvest {