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

Fixed minor sync issue when merging thermostats

This commit is contained in:
Jon Ziebell 2022-09-30 12:30:49 -04:00
parent 2c16f24c16
commit 8f90bd154b

View File

@ -77,7 +77,10 @@ class runtime extends cora\api {
strtotime($thermostat['sync_begin']) <= strtotime('-1 year')
) ||
// For when merging thermostats and sync_begin is less than first_connected
strtotime($thermostat['sync_begin']) <= strtotime($thermostat['first_connected'])
(
$thermostat['sync_begin'] !== null &&
strtotime($thermostat['sync_begin']) <= strtotime($thermostat['first_connected'])
)
) {
$this->sync_forwards($thermostat_id);