From f923deb71de032d1e9ccf4e7445ff579bb5ae8d0 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Thu, 2 May 2024 12:08:54 -0700 Subject: [PATCH] Energy CSV download should not require admin (#20704) --- 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")} +