From 578ff5b53fe2a5365b7eac09dc8fd410f7653339 Mon Sep 17 00:00:00 2001 From: RoboMagus <68224306+RoboMagus@users.noreply.github.com> Date: Tue, 7 Jun 2022 17:11:47 +0200 Subject: [PATCH] Energy Dashboard: Align total cost with 'previous cost' column. (#12883) Co-authored-by: Bram Kragten --- .../cards/energy/hui-energy-sources-table-card.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/panels/lovelace/cards/energy/hui-energy-sources-table-card.ts b/src/panels/lovelace/cards/energy/hui-energy-sources-table-card.ts index 1cf7f1887f..4b8681bd0e 100644 --- a/src/panels/lovelace/cards/energy/hui-energy-sources-table-card.ts +++ b/src/panels/lovelace/cards/energy/hui-energy-sources-table-card.ts @@ -851,7 +851,10 @@ export class HuiEnergySourcesTableCard )} ${compare - ? html`` + : ""} + ${formatNumber( @@ -862,10 +865,7 @@ export class HuiEnergySourcesTableCard currency: this.hass.config.currency!, } )} - - ${showCosts - ? html`` - : ""}` + ` : ""}