custom-cards / decluttering-card

🧹 Declutter your lovelace configuration with the help of this card
MIT License
372 stars 30 forks source link

Broken in HomeAssistant beta (2023.4b0) #63

Closed kulmegil closed 1 year ago

kulmegil commented 1 year ago

Checklist:

Release with the issue:

Home Assistant2023.4b0

Last working release (if known):

Home Assistant 2023.3.6

Browser and Operating System:

any

Description of problem:

Card is no longer able to load templates located in lovelace config.

This is caused by changes in dom structure in HA frontend and getLovelace() (from "custom-card-helpers" dependency) no longer returning lovelace config to Decluittering Card

Javascript errors shown in the web inspector (if applicable):

card custom:decluttering-card TypeError: can't access property "config", t is null

Additional information:

t-n commented 1 year ago

I found a workaround until we get a new release

kulmegil commented 1 year ago

You just needed to replace "app-drawer-layout partial-panel-resolver" into "app-drawer-layout, mwc-drawer partial-panel-resolver" and it should work with both beta and previous versions as well.

johntdyer commented 1 year ago

Yea, neither @kulmegil or @t-n 's method seem to be working for me...

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

Mariusthvdb commented 1 year ago

Thank you!

kulmegil commented 1 year ago

@RomRider thank you for fixing this one for us. Works well!

@johntdyer it did work until beta 4 broke things again ;)

eiiot commented 1 year ago

Still broken in 2023.4.1 for me...

firstof9 commented 1 year ago

Empty your browser cache and reload.

SoulRaven commented 1 year ago

same problem also on Home Assistant 2023.4.2 no change

Mariusthvdb commented 1 year ago

No it's not broken anymore. Just do what we have to do. Every time. When a custom resource is updated..

Update via Hacs. Or edit the number manually with the 'cache-breaker' if using yaml.