mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +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;
|
||||
}
|
||||
|
||||
const oldConfig = changedProps.get("_config") as
|
||||
| HistoryGraphCardConfig
|
||||
| undefined;
|
||||
if (!changedProps.has("_config")) {
|
||||
return;
|
||||
}
|
||||
|
||||
const oldConfig = changedProps.get("_config") as HistoryGraphCardConfig;
|
||||
|
||||
if (oldConfig !== this._config) {
|
||||
this._getStateHistory();
|
||||
|
Loading…
x
Reference in New Issue
Block a user