Fix hass object in nested hui-card (#21178)

This commit is contained in:
Paul Bottein 2024-06-26 23:05:47 +02:00 committed by GitHub
parent d9f1b06199
commit b08b67179e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }