1
0
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:
Jon Ziebell 2022-11-29 21:10:20 -05:00
parent aab808affa
commit 913f7a2aa1
4 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.