mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-04 15:07:48 +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);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user