diff --git a/src/panels/energy/ha-panel-energy.ts b/src/panels/energy/ha-panel-energy.ts index 317a87aae6..284fb08270 100644 --- a/src/panels/energy/ha-panel-energy.ts +++ b/src/panels/energy/ha-panel-energy.ts @@ -268,8 +268,10 @@ class PanelEnergy extends LitElement { (source) => source.type === "gas" ); + const hasDeviceConsumption = this._prefs.device_consumption.length > 0; + const views: LovelaceViewConfig[] = []; - if (hasEnergy) { + if (hasEnergy || hasDeviceConsumption) { views.push(ENERGY_VIEW); } if (hasGas) {