Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking: HA 2023.4 (beta) no longer uses app-drawer-layout #72

Open
Mariusthvdb opened this issue Mar 30, 2023 · 1 comment · May be fixed by #73 or #74
Open

Breaking: HA 2023.4 (beta) no longer uses app-drawer-layout #72

Mariusthvdb opened this issue Mar 30, 2023 · 1 comment · May be fixed by #73 or #74

Comments

@Mariusthvdb
Copy link

Mariusthvdb commented Mar 30, 2023

breaking all cards that use this custom functionality

please see #beta in Discord.

app-drawer-layout was replaced by mwc-drawer

link to Discord: https://discord.com/channels/330944238910963714/427516175237382144/1090920193947074642

@jcwillox
Copy link

jcwillox commented Apr 10, 2023

Indeed here's the patch I'm using, I'll create a PR to fix this 👍

diff --git a/src/get-lovelace.ts b/src/get-lovelace.ts
index ebde3e6bf5d86f793d9697d8c88b57bf7b004e7b..6a8afc3d32539a4f8a257926a7cf9972841c8343 100644
--- a/src/get-lovelace.ts
+++ b/src/get-lovelace.ts
@@ -3,7 +3,7 @@ export const getLovelace = () => {
     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('ha-drawer partial-panel-resolver');
     root = root && root.shadowRoot || root;
     root = root && root.querySelector('ha-panel-lovelace');
     root = root && root.shadowRoot;

Here's the full patch https://github.com/jcwillox/lovelace-paper-buttons-row/blob/5fd0a3679c3558a854587894ee174ccbf5ce407f/patches/custom-card-helpers%401.9.0.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants