Energy self sufficiency gauge needs grid consumption (#24606)

This commit is contained in:
karwosts 2025-03-12 10:06:31 -07:00 committed by GitHub
parent dda7de3301
commit 69026cbecf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,11 +148,13 @@ export class EnergyViewStrategy extends ReactiveElement {
collection_key: "energy_dashboard",
});
}
view.cards!.push({
type: "energy-self-sufficiency-gauge",
view_layout: { position: "sidebar" },
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