button-card: Button-card broken in HA 2023.4 (beta) Dont update if you use button-card

Checklist

  • I updated the card to the latest version available
  • I cleared the cache of my browser

Describe the bug A clear and concise description of what the bug is.

2023.4 beta launched today, and the many changes in the frontend cause button-card to no longer be functional.

according to Frontend dev this might be an issue:

  • custom-card-helpers is broken, it walks through DOM elements and something changed in those elements

Version of the carde Version:

To Reproduce This is the configuration I used:


Screenshots If applicable, add screenshots to help explain your problem.

Scherm­afbeelding 2023-03-30 om 09 20 41

Expected behavior A clear and concise description of what you expected to happen.

Seems obvious… ourDashboard to be functional with the best card around

Desktop (please complete the following information): Any

Smartphone (please complete the following information): Any

Additional context Add any other context about the problem here.

This seems to be a generic issue with the card, I didnt have a chance to find a specific detail yet, had to roll back to 2023.3.6 in order to have a functional frontend…

in the #beta on Discord it was mentioned that the same also applies to Decluttering-card and Apex-charts-card.

Hope you’re still around RR, and can find the time to fix these so very fundamental cards.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 5
  • Comments: 19 (5 by maintainers)

Commits related to this issue

Most upvoted comments

I’ll fix that Monday, folks (as well as the 2 others)

yes, and to make it directly available like @kulmegil found out in https://community.home-assistant.io/t/lovelace-button-card/65981/6839

replace:

querySelector(“app-drawer-layout partial-panel-resolver”)

with:

querySelector("app-drawer-layout partial-panel-resolver, mwc-drawer partial-panel-resolver")

I have it on good authority, we have to wait until Monday, and some mysterious dev will have a look and release a fix…so have some patience, (and until that time, edit the resource manually)

Note: I’ve updated it directly to use ha-drawer

RomRider, you’re the best! Do notice https://discord.com/channels/330944238910963714/427516175237382144/1091751687221424159 though…

OK, I know you will all hate me for doing this, but believe me it is better to do it now then later 😬 We will rename mwc-drawer to ha-drawer during the beta (hopefully next beta) This means all custom cards that where updated to mwc-drawer should now be updated again to ha-drawer

I’m not smart enough to actually provide more insightful help as I lack the experience, but here is the link for requirements: https://hacs.xyz/docs/publish/plugin

I’m pretty sure hacs needs to locate a valid build .js file (either attached to latest release or in repo root or /dist folder)

Not sure how crash with button-card already being a part of default repos list. (is unique repo name required?)