mirror of
https://github.com/beestat/app.git
synced 2026-05-20 22:32:30 -04:00
Fixed #318 - Metrics / Profiles sometimes use data from the wrong thermostat
This commit is contained in:
+2
-2
@@ -162,8 +162,8 @@ class profile extends cora\api {
|
||||
|
||||
// Get all of the relevant data
|
||||
$thermostat_ids = [];
|
||||
foreach($group_thermostats as $thermostat) {
|
||||
$thermostat_ids[] = $thermostat['thermostat_id'];
|
||||
foreach($group_thermostats as $group_thermostat) {
|
||||
$thermostat_ids[] = $group_thermostat['thermostat_id'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user