mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix compare button for energy cards on manual dashboard (#16579)
This commit is contained in:
parent
c5205ae8db
commit
aea098ff17
@ -272,7 +272,7 @@ export class HuiEnergyPeriodSelector extends SubscribeMixin(LitElement) {
|
||||
private _toggleCompare() {
|
||||
this._compare = !this._compare;
|
||||
const energyCollection = getEnergyDataCollection(this.hass, {
|
||||
key: "energy_dashboard",
|
||||
key: this.collectionKey,
|
||||
});
|
||||
energyCollection.setCompare(this._compare);
|
||||
energyCollection.refresh();
|
||||
|
Loading…
x
Reference in New Issue
Block a user