diff --git a/src/components/state-history-charts.ts b/src/components/state-history-charts.ts index a8faeb80d9..49ac8049c5 100644 --- a/src/components/state-history-charts.ts +++ b/src/components/state-history-charts.ts @@ -6,6 +6,7 @@ import { html, LitElement, property, + PropertyValues, TemplateResult, } from "lit-element"; import "./state-history-chart-line"; @@ -83,6 +84,10 @@ class StateHistoryCharts extends LitElement { `; } + protected shouldUpdate(changedProps: PropertyValues): boolean { + return !(changedProps.size === 1 && changedProps.has("hass")); + } + private _isHistoryEmpty(): boolean { const historyDataEmpty = !this.historyData ||