From 1d0f7218bd5ed4020d717f736944d0829a5dbf2c Mon Sep 17 00:00:00 2001 From: Jon Ziebell Date: Thu, 4 Feb 2021 08:34:36 -0500 Subject: [PATCH] Fixed profiles not generating if you have inactive thermostats Affects cron job only --- api/thermostat.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/thermostat.php b/api/thermostat.php index 95bda30..1e9ab7e 100644 --- a/api/thermostat.php +++ b/api/thermostat.php @@ -223,7 +223,9 @@ class thermostat extends cora\crud { * the cron job. */ public function generate_profiles() { - $thermostats = $this->read(); + $thermostats = $this->read([ + 'inactive' => 0 + ]); foreach($thermostats as $thermostat) { $this->generate_profile( $thermostat['thermostat_id']