mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Fix CPU and Browser Usuage (#4935)
This commit is contained in:
parent
52609dded9
commit
fc88922ce3
@ -87,9 +87,11 @@ export class HuiHistoryGraphCard extends LitElement implements LovelaceCard {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const oldConfig = changedProps.get("_config") as
|
if (!changedProps.has("_config")) {
|
||||||
| HistoryGraphCardConfig
|
return;
|
||||||
| undefined;
|
}
|
||||||
|
|
||||||
|
const oldConfig = changedProps.get("_config") as HistoryGraphCardConfig;
|
||||||
|
|
||||||
if (oldConfig !== this._config) {
|
if (oldConfig !== this._config) {
|
||||||
this._getStateHistory();
|
this._getStateHistory();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user