From b35c325f434bf5f35c424628c847dd225aa257ce Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Fri, 12 Apr 2024 11:53:04 -0700 Subject: [PATCH] Rebuild stack card when a child card rebuilds (#19861) --- src/panels/lovelace/cards/hui-stack-card.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panels/lovelace/cards/hui-stack-card.ts b/src/panels/lovelace/cards/hui-stack-card.ts index b7b8e7758ce0..7a9940e635ac 100644 --- a/src/panels/lovelace/cards/hui-stack-card.ts +++ b/src/panels/lovelace/cards/hui-stack-card.ts @@ -7,6 +7,7 @@ import { nothing, } from "lit"; import { property, state } from "lit/decorators"; +import { fireEvent } from "../../../common/dom/fire_event"; import { LovelaceCardConfig } from "../../../data/lovelace/config/card"; import { HomeAssistant } from "../../../types"; import { createCardElement } from "../create-element/create-card-element"; @@ -119,6 +120,7 @@ export abstract class HuiStackCard (ev) => { ev.stopPropagation(); this._rebuildCard(element, cardConfig); + fireEvent(this, "ll-rebuild"); }, { once: true } );