mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Fixed #375 - First sync gets stuck if thermostat is less than 3 days old
This commit is contained in:
parent
aab808affa
commit
913f7a2aa1
@ -112,7 +112,7 @@ beestat.component.card.air_quality_detail.prototype.decorate_contents_ = functio
|
||||
// Don't go before there's data.
|
||||
required_begin = moment.max(
|
||||
required_begin,
|
||||
moment.utc(thermostat.data_begin)
|
||||
moment(thermostat.data_begin)
|
||||
);
|
||||
|
||||
// Don't go after now.
|
||||
|
@ -82,7 +82,7 @@ beestat.component.card.air_quality_summary.prototype.decorate_contents_ = functi
|
||||
// Don't go before there's data.
|
||||
required_begin = moment.max(
|
||||
required_begin,
|
||||
moment.utc(thermostat.data_begin)
|
||||
moment(thermostat.data_begin)
|
||||
);
|
||||
|
||||
// Don't go after now.
|
||||
|
@ -114,7 +114,7 @@ beestat.component.card.runtime_sensor_detail.prototype.decorate_contents_ = func
|
||||
// Don't go before there's data.
|
||||
required_begin = moment.max(
|
||||
required_begin,
|
||||
moment.utc(thermostat.data_begin)
|
||||
moment(thermostat.data_begin)
|
||||
);
|
||||
|
||||
// Don't go after now.
|
||||
|
@ -133,7 +133,7 @@ beestat.component.card.runtime_thermostat_detail.prototype.decorate_contents_ =
|
||||
// Don't go before there's data.
|
||||
required_begin = moment.max(
|
||||
required_begin,
|
||||
moment.utc(thermostat.data_begin)
|
||||
moment(thermostat.data_begin)
|
||||
);
|
||||
|
||||
// Don't go after now.
|
||||
|
Loading…
x
Reference in New Issue
Block a user