This commit is contained in:
Mateusz Gruszczyński
2026-09-15 09:04:29 +02:00
parent 0a2fb8c6c7
commit 2ff310bdc5
37 changed files with 731 additions and 141 deletions
+2 -1
View File
@@ -76,7 +76,8 @@ async fn resolve_cycle_outdoor_temperature(
} else {
None
};
let temperature = from_home_assistant.or_else(|| gree_outdoor_temperature(devices));
let device_groups = state.db.list_device_groups().unwrap_or_default();
let temperature = from_home_assistant.or_else(|| gree_outdoor_temperature(devices, &device_groups));
let mut current = state.outdoor_temperature.write().await;
if *current != temperature {
*current = temperature;