1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Fixed #318 - Metrics / Profiles sometimes use data from the wrong thermostat

This commit is contained in:
Jon Ziebell 2021-02-02 18:35:58 -05:00
parent 62a09191c1
commit b3fa9b8f9d

View File

@ -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'];
}
/**