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:
parent
d531850863
commit
de19cd53cc
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user