mirror of
https://github.com/beestat/app.git
synced 2025-05-31 20:26:32 -04:00
Fixed minor sync issue when merging thermostats
This commit is contained in:
parent
2c16f24c16
commit
8f90bd154b
@ -77,7 +77,10 @@ class runtime extends cora\api {
|
|||||||
strtotime($thermostat['sync_begin']) <= strtotime('-1 year')
|
strtotime($thermostat['sync_begin']) <= strtotime('-1 year')
|
||||||
) ||
|
) ||
|
||||||
// For when merging thermostats and sync_begin is less than first_connected
|
// For when merging thermostats and sync_begin is less than first_connected
|
||||||
|
(
|
||||||
|
$thermostat['sync_begin'] !== null &&
|
||||||
strtotime($thermostat['sync_begin']) <= strtotime($thermostat['first_connected'])
|
strtotime($thermostat['sync_begin']) <= strtotime($thermostat['first_connected'])
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
$this->sync_forwards($thermostat_id);
|
$this->sync_forwards($thermostat_id);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user