Skip to content

Commit

Permalink
Adapt to recent HA changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sian-Lee-SA committed Jan 4, 2025
1 parent d7301b3 commit 35d3031
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion honeycomb-menu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function lovelace_view()
root = root && root.shadowRoot;
root = root && root.querySelector("ha-app-layout") || root;
root = root && root.querySelector("#view");
root = root && root.firstElementChild;
root = root && root.querySelector("hui-view");
return root;
}

Expand All @@ -111,9 +111,9 @@ export function lovelace_config()
root = root && root.shadowRoot;
root = root && root.querySelector("app-drawer-layout partial-panel-resolver") || root.querySelector("ha-drawer partial-panel-resolver");
root = root && root.shadowRoot || root;
root = root && root.querySelector("ha-panel-lovelace")
root = root && root.querySelector("ha-panel-lovelace");
root = root && root.shadowRoot;
root = root && root.querySelector("hui-root")
root = root && root.querySelector("hui-root");
if (root) {
return root.lovelace.config || null;
}
Expand Down

0 comments on commit 35d3031

Please sign in to comment.