mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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() {
|
private _toggleCompare() {
|
||||||
this._compare = !this._compare;
|
this._compare = !this._compare;
|
||||||
const energyCollection = getEnergyDataCollection(this.hass, {
|
const energyCollection = getEnergyDataCollection(this.hass, {
|
||||||
key: "energy_dashboard",
|
key: this.collectionKey,
|
||||||
});
|
});
|
||||||
energyCollection.setCompare(this._compare);
|
energyCollection.setCompare(this._compare);
|
||||||
energyCollection.refresh();
|
energyCollection.refresh();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user