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-26 22:32:23 -04:00
parent d531850863
commit de19cd53cc

View File

@ -75,7 +75,9 @@ class runtime extends cora\api {
(
$thermostat['sync_begin'] !== null &&
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'])
) {
$this->sync_forwards($thermostat_id);