mirror of
https://github.com/beestat/app.git
synced 2026-05-24 08:02:27 -04:00
Fixed #375 - First sync gets stuck if thermostat is less than 3 days old
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user