From a15f0c7814d77e292a7644e9803cae18c48e36f2 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Fri, 4 Apr 2025 15:09:36 +0200 Subject: [PATCH] Show the correct area icon in entity breadcrumb (#24913) --- src/components/ha-related-items.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/ha-related-items.ts b/src/components/ha-related-items.ts index 63c2cf1882..7cd3bfd2d0 100644 --- a/src/components/ha-related-items.ts +++ b/src/components/ha-related-items.ts @@ -3,7 +3,7 @@ import { mdiAlertCircleOutline, mdiDevices, mdiPaletteSwatch, - mdiSofa, + mdiTextureBox, } from "@mdi/js"; import type { CSSResultGroup, PropertyValues } from "lit"; import { LitElement, css, html, nothing } from "lit"; @@ -235,10 +235,15 @@ export class HaRelatedItems extends LitElement { })} slot="graphic" >` - : html``} + : area.icon + ? html`` + : html``} ${area.name}