mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -20,11 +20,11 @@ cards:
|
||||
- type: custom:mushroom-title-card
|
||||
title: Current Live Totals
|
||||
- type: custom:mushroom-title-card
|
||||
title: "{{states('sensor.pm_grid_total_a')}} A"
|
||||
title: "{{states('sensor.pm_grid_a')|float(default=0)|round(2) }} A"
|
||||
- type: custom:mushroom-title-card
|
||||
title: "{{states('sensor.pm_grid_total_w')}} W"
|
||||
title: "{{states('sensor.pm_grid_w')|float(default=0)|round(2) }} W"
|
||||
- type: custom:mushroom-title-card
|
||||
title: "{{states('sensor.pm_grid_kwh')}} kWh"
|
||||
title: "{{states('sensor.pm_grid_kwh')|float(default=0)|round(2) }} kWh"
|
||||
- type: horizontal-stack
|
||||
cards:
|
||||
- type: vertical-stack
|
||||
|
||||
Reference in New Issue
Block a user