From 6f305536f62a2cf3cdf4167cf2686b799d274c65 Mon Sep 17 00:00:00 2001 From: karwosts Date: Thu, 2 May 2024 10:58:09 -0700 Subject: [PATCH] Energy CSV download should not require admin --- src/panels/energy/ha-panel-energy.ts | 36 +++++++++++++--------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/src/panels/energy/ha-panel-energy.ts b/src/panels/energy/ha-panel-energy.ts index 328e25cf4cd5..87b9a2f24832 100644 --- a/src/panels/energy/ha-panel-energy.ts +++ b/src/panels/energy/ha-panel-energy.ts @@ -88,27 +88,23 @@ class PanelEnergy extends LitElement { collectionKey="energy_dashboard" > ${this.hass.user?.is_admin - ? html` - - - - ${this.hass!.localize("ui.panel.energy.configure")} - - - - - ${this.hass!.localize("ui.panel.energy.download_data")} - - ` + ? html` + + ${this.hass!.localize("ui.panel.energy.configure")} + ` : nothing} + + + ${this.hass!.localize("ui.panel.energy.download_data")} +