Skip to content

Commit

Permalink
Fix hass object in nested hui-card (#21178)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Jun 26, 2024
1 parent d9f1b06 commit b08b671
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/panels/lovelace/cards/hui-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit b08b671

Please sign in to comment.