Skip to content

Commit

Permalink
fix(tabs): ensure tab component is loaded
Browse files Browse the repository at this point in the history
ha frontend stopped loading mwc-tab-bar via whatever component so it needs to be loaded manually
  • Loading branch information
kinghat committed Sep 9, 2023
1 parent 33db0c8 commit 32c0ee3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tabbed-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export class TabbedCard extends LitElement {

private async loadCardHelpers() {
this._helpers = await (window as any).loadCardHelpers();

if (!customElements.get("mwc-tab-bar")) this._helpers.importMoreInfoControl("weather")
}

static async getConfigElement(): Promise<LovelaceCardEditor> {
Expand Down

0 comments on commit 32c0ee3

Please sign in to comment.