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
(cherry-pick)
  • Loading branch information
kinghat committed Sep 18, 2023
1 parent f39eeda commit 97c4b32
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 @@ -65,6 +65,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 97c4b32

Please sign in to comment.