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", collection_key: "energy_dashboard",
}); });
} }
view.cards!.push({ if (hasGrid) {
type: "energy-self-sufficiency-gauge", view.cards!.push({
view_layout: { position: "sidebar" }, type: "energy-self-sufficiency-gauge",
collection_key: "energy_dashboard", view_layout: { position: "sidebar" },
}); collection_key: "energy_dashboard",
});
}
} }
// Only include if we have a grid // Only include if we have a grid