1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed profiles not generating if you have inactive thermostats

Affects cron job only
This commit is contained in:
Jon Ziebell 2021-02-04 08:34:36 -05:00
parent 7b7a5e9d88
commit 1d0f7218bd

View File

@ -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']