mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Is this the best way
This commit is contained in:
parent
72e6c729c9
commit
b802cf9274
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user