From b3fa9b8f9deeaa135e86559041b1d2cadf9836df Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Tue, 2 Feb 2021 18:35:58 -0500 Subject: [PATCH] Fixed #318 - Metrics / Profiles sometimes use data from the wrong thermostat --- api/profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/profile.php b/api/profile.php index 2cc4bad..3fc28c5 100644 --- a/api/profile.php +++ b/api/profile.php @@ -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']; } /**