From a210487ca6ff652932505ee3989c3e0fbced91a2 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Thu, 27 Feb 2020 12:05:16 -0500 Subject: [PATCH] Fixed metrics using old array if not available --- api/thermostat_group.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/api/thermostat_group.php b/api/thermostat_group.php index b52a97b..c045e6a 100644 --- a/api/thermostat_group.php +++ b/api/thermostat_group.php @@ -72,16 +72,8 @@ class thermostat_group extends cora\crud { // Get all of the individual deltas for averaging. $group_profile = [ 'setpoint' => [ - 'heat' => [ - 'average' => null, - 'minimum' => null, - 'maximum' => null - ], - 'cool' => [ - 'average' => null, - 'minimum' => null, - 'maximum' => null - ] + 'heat' => null, + 'cool' => null ], 'metadata' => [ 'generated_at' => date('c'),