From 8be843de753208e2cda2b22304ec0dffb17dc6a9 Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Tue, 2 Feb 2021 21:08:02 -0500 Subject: [PATCH] Fixed #319 - Heat profile not generating for new users --- api/profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/profile.php b/api/profile.php index 2e3641d..1cbfc33 100644 --- a/api/profile.php +++ b/api/profile.php @@ -266,8 +266,8 @@ class profile extends cora\api { // Normalizing heating and cooling a bit. if( - $thermostat['system_type']['detected']['heat'] === 'compressor' || - $thermostat['system_type']['detected']['heat'] === 'geothermal' + $thermostat['system_type2']['detected']['heat']['equipment'] === 'compressor' || + $thermostat['system_type2']['detected']['heat']['equipment'] === 'geothermal' ) { if($row['compressor_mode'] === 'heat') { $row['heat_1'] = $row['compressor_1'];