mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Graph history fix (#5846)
This commit is contained in:
parent
581fafdcc9
commit
2c2a1d204b
@ -75,7 +75,7 @@ export class HuiGraphHeaderFooter extends LitElement
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._coordinates.length < 1) {
|
if (!this._coordinates.length) {
|
||||||
return html`
|
return html`
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="info">
|
<div class="info">
|
||||||
@ -146,12 +146,13 @@ export class HuiGraphHeaderFooter extends LitElement
|
|||||||
this._stateHistory!.push(...stateHistory[0]);
|
this._stateHistory!.push(...stateHistory[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._coordinates = coordinates(
|
this._coordinates =
|
||||||
this._stateHistory,
|
coordinates(
|
||||||
this._config!.hours_to_show!,
|
this._stateHistory,
|
||||||
500,
|
this._config!.hours_to_show!,
|
||||||
this._config!.detail!
|
500,
|
||||||
);
|
this._config!.detail!
|
||||||
|
) || [];
|
||||||
|
|
||||||
this._date = endTime;
|
this._date = endTime;
|
||||||
this._fetching = false;
|
this._fetching = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user