mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +00:00
Energy self sufficiency gauge needs grid consumption (#24606)
This commit is contained in:
parent
dda7de3301
commit
69026cbecf
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user