Is this the best way

This commit is contained in:
Zack Arnett 2020-09-09 19:19:11 -05:00
parent 72e6c729c9
commit b802cf9274

View File

@ -123,7 +123,7 @@ export class MoreInfoHistory extends LitElement {
new Date(new Date().getTime() - 24 * 60 * 60 * 1000); new Date(new Date().getTime() - 24 * 60 * 60 * 1000);
const now = new Date(); const now = new Date();
this._entries = await getLogbookData( const newEntries = await getLogbookData(
this.hass, this.hass,
lastDate.toISOString(), lastDate.toISOString(),
now.toISOString(), now.toISOString(),
@ -131,6 +131,8 @@ export class MoreInfoHistory extends LitElement {
true true
); );
this._entries = [...(this._entries || []), ...newEntries];
this._lastLogbookDate = now; this._lastLogbookDate = now;
} }