diff --git a/src/components/battery.ts b/src/components/battery.ts
index 4c6fec2..5d1093e 100644
--- a/src/components/battery.ts
+++ b/src/components/battery.ts
@@ -57,17 +57,20 @@ export const batteryElement = (
})}
`
: null}
- void }) => {
- main.openDetails(e, entities.battery?.state_of_charge!);
- }}
- @keyDown=${(e: { key: string; stopPropagation: () => void }) => {
- if (e.key === "Enter") {
- main.openDetails(e, entities.battery?.state_of_charge!);
- }
- }}
- >
+ ${battery.icon !== " "
+ ? html` void }) => {
+ main.openDetails(e, entities.battery?.state_of_charge!);
+ }}
+ @keyDown=${(e: { key: string; stopPropagation: () => void }) => {
+ if (e.key === "Enter") {
+ main.openDetails(e, entities.battery?.state_of_charge!);
+ }
+ }}
+ />`
+ : null}
${entities.battery?.display_state === "two_way" ||
entities.battery?.display_state === undefined ||
(entities.battery?.display_state === "one_way_no_zero" && battery.state.toBattery > 0) ||
diff --git a/src/components/grid.ts b/src/components/grid.ts
index 38e6cfc..0248439 100644
--- a/src/components/grid.ts
+++ b/src/components/grid.ts
@@ -37,7 +37,7 @@ export const gridElement = (
}}
>
${generalSecondarySpan(main.hass, main, config, templatesObj, grid, "grid")}
-
+ ${grid.icon !== " " ? html` ` : null}
${(entities.grid?.display_state === "two_way" ||
entities.grid?.display_state === undefined ||
(entities.grid?.display_state === "one_way_no_zero" && (grid.state.toGrid ?? 0) > 0) ||
diff --git a/src/components/home.ts b/src/components/home.ts
index 9c40a48..fa0e28b 100644
--- a/src/components/home.ts
+++ b/src/components/home.ts
@@ -53,7 +53,7 @@ export const homeElement = (
}}
>
${generalSecondarySpan(main.hass, main, config, templatesObj, home, "home")}
-
+ ${home.icon !== " " ? html`` : null}
${homeUsageToDisplay}