From 4349bbdbf072271b05b445ed20d2ae35b7ce85ce Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 26 Jun 2024 22:52:48 +0200 Subject: [PATCH] Fix hass object in nested hui-card --- src/panels/lovelace/cards/hui-card.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panels/lovelace/cards/hui-card.ts b/src/panels/lovelace/cards/hui-card.ts index e8091f2b871f..a892d4764dcf 100644 --- a/src/panels/lovelace/cards/hui-card.ts +++ b/src/panels/lovelace/cards/hui-card.ts @@ -105,6 +105,8 @@ export class HuiCard extends ReactiveElement { "ll-upgrade", (ev: Event) => { ev.stopPropagation(); + element.hass = this.hass; + element.preview = this.preview; fireEvent(this, "card-updated"); }, { once: true }