From b99072d986133f7ddbc772047dfedd46ddc1e656 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 4 Mar 2024 15:31:07 +0100 Subject: [PATCH] Use icon in area card if there is no image (#19933) --- src/panels/lovelace/cards/hui-area-card.ts | 43 +++++++++++++++++----- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/src/panels/lovelace/cards/hui-area-card.ts b/src/panels/lovelace/cards/hui-area-card.ts index ecd9dda6b3..d11cab9475 100644 --- a/src/panels/lovelace/cards/hui-area-card.ts +++ b/src/panels/lovelace/cards/hui-area-card.ts @@ -418,15 +418,24 @@ export class HuiAreaCard })} > ${area.picture || cameraEntityId - ? html`` - : ""} + ? html` + + ` + : area.icon + ? html` +
+ +
+ ` + : nothing}