We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fce89a commit be4e46aCopy full SHA for be4e46a
src/panels/lovelace/cards/hui-statistics-graph-card.ts
@@ -196,6 +196,10 @@ export class HuiStatisticsGraphCard extends LitElement implements LovelaceCard {
196
197
public willUpdate(changedProps: PropertyValues) {
198
super.willUpdate(changedProps);
199
+ if (changedProps.has("hass") || changedProps.has("_config")) {
200
+ this._computeNames();
201
+ }
202
+
203
if (!this._config || !changedProps.has("_config")) {
204
return;
205
}
@@ -225,10 +229,6 @@ export class HuiStatisticsGraphCard extends LitElement implements LovelaceCard {
225
229
226
230
227
231
228
- if (changedProps.has("hass")) {
- this._computeNames();
- }
-
232
if (
233
changedProps.has("_config") &&
234
oldConfig?.entities !== this._config.entities
0 commit comments