Skip to content

Commit

Permalink
Ensure energy card titles always displayed (#18432)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Oct 27, 2023
1 parent f1748e4 commit 4e9b118
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/panels/energy/ha-panel-energy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class PanelEnergy extends LitElement {
if (oldHass?.locale !== this.hass.locale) {
this._setLovelace();
}
if (oldHass && oldHass.localize !== this.hass.localize) {
this._reloadView();
}
}

protected render(): TemplateResult {
Expand Down

0 comments on commit 4e9b118

Please sign in to comment.