Skip to content

Commit

Permalink
fix: card broken with HA 2023.4.0bXX and above
Browse files Browse the repository at this point in the history
Fix #527
  • Loading branch information
RomRider committed Apr 2, 2023
1 parent 0518d3c commit e1aaf69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Expand Up @@ -159,7 +159,7 @@ export function getLovelace(): LovelaceConfig | null {
root = root && root.shadowRoot;
root = root && root.querySelector('home-assistant-main');
root = root && root.shadowRoot;
root = root && root.querySelector('app-drawer-layout partial-panel-resolver');
root = root && root.querySelector('app-drawer-layout partial-panel-resolver, ha-drawer partial-panel-resolver');
root = (root && root.shadowRoot) || root;
root = root && root.querySelector('ha-panel-lovelace');
root = root && root.shadowRoot;
Expand Down

0 comments on commit e1aaf69

Please sign in to comment.