Energy self sufficiency gauge needs grid consumption (#24606)

This commit is contained in:
karwosts 2025-03-12 10:06:31 -07:00 committed by Bram Kragten
parent e871dc8151
commit df934cfed9

View File

@ -148,12 +148,14 @@ export class EnergyViewStrategy extends ReactiveElement {
collection_key: "energy_dashboard",
});
}
if (hasGrid) {
view.cards!.push({
type: "energy-self-sufficiency-gauge",
view_layout: { position: "sidebar" },
collection_key: "energy_dashboard",
});
}
}
// Only include if we have a grid
if (hasGrid) {