diff --git a/src/battery-provider.ts b/src/battery-provider.ts index d00ab6b..157d132 100644 --- a/src/battery-provider.ts +++ b/src/battery-provider.ts @@ -209,8 +209,6 @@ export class BatteryProvider { const filters = this.exclude; const toBeRemoved: string[] = []; - - Object.keys(this.batteries).forEach((entityId) => { const battery = this.batteries[entityId]; let isHidden = false; diff --git a/src/custom-elements/lovelace-card.ts b/src/custom-elements/lovelace-card.ts index f13bf97..d6d5495 100644 --- a/src/custom-elements/lovelace-card.ts +++ b/src/custom-elements/lovelace-card.ts @@ -41,6 +41,12 @@ export abstract class LovelaceCard extends LitElement { */ private triggerUpdate = throttledCall(async () => { await this.internalUpdate(this.configUpdated, this.hassUpdated); + + if (this.configUpdated) { + // always rerender when config has changed + this.requestUpdate(); + } + this.configUpdated = false; this.hassUpdated = false; this.updateNotifyQueue.forEach(n => n());