From b802cf9274ee94466495e0fc3bf0b755d0801f7c Mon Sep 17 00:00:00 2001 From: Zack Arnett Date: Wed, 9 Sep 2020 19:19:11 -0500 Subject: [PATCH] Is this the best way --- src/dialogs/more-info/ha-more-info-history.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dialogs/more-info/ha-more-info-history.ts b/src/dialogs/more-info/ha-more-info-history.ts index 192f48f000..41d2f8d047 100644 --- a/src/dialogs/more-info/ha-more-info-history.ts +++ b/src/dialogs/more-info/ha-more-info-history.ts @@ -123,7 +123,7 @@ export class MoreInfoHistory extends LitElement { new Date(new Date().getTime() - 24 * 60 * 60 * 1000); const now = new Date(); - this._entries = await getLogbookData( + const newEntries = await getLogbookData( this.hass, lastDate.toISOString(), now.toISOString(), @@ -131,6 +131,8 @@ export class MoreInfoHistory extends LitElement { true ); + this._entries = [...(this._entries || []), ...newEntries]; + this._lastLogbookDate = now; }