mirror of
https://github.com/beestat/app.git
synced 2025-06-03 05:36:51 -04:00
Fixed #239 Historical runtime fails to sync when it reaches point where ecobee has deleted data
This commit is contained in:
parent
32dd941b22
commit
6b9241d0c7
@ -313,7 +313,7 @@ class runtime extends cora\api {
|
|||||||
* @param int $begin
|
* @param int $begin
|
||||||
* @param int $end
|
* @param int $end
|
||||||
*
|
*
|
||||||
* @return string The last updated or inserted timestamp.
|
* @return array The first and last updated or inserted timestamp.
|
||||||
*/
|
*/
|
||||||
private function sync_($thermostat_id, $begin, $end) {
|
private function sync_($thermostat_id, $begin, $end) {
|
||||||
$this->user_lock($thermostat_id);
|
$this->user_lock($thermostat_id);
|
||||||
@ -596,8 +596,8 @@ class runtime extends cora\api {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'data_begin' => strtotime($data_begin),
|
'data_begin' => (($data_begin === null) ? null : strtotime($data_begin)),
|
||||||
'data_end' => strtotime($data_end)
|
'data_end' => (($data_end === null) ? null : strtotime($data_end))
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user