-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
2022.3.X Breaks dropdown #606
Comments
Thanks for the heads up, much appreciated. |
we replaced them with |
Having fallen way too far down a rabbit hole of It will But (despite it being the same error that motivated my attempt to replatform onto
(despite the So I give up. Someone who has used any of these technologies before can take a crack at it - I'll swap back to Hopefully that commit can save you some of the busy work though? Footnotes |
I guess this is what I am experiencing now: home-assistant/frontend#11738 |
Reverting to my backup at core-2022.3.0.dev20220213 (ghcr.io/home-assistant/qemux86-64-homeassistant@sha256:0a4f7cc00c2664ab8edcab19afe87e2f94584b99453256831cc0bd356c7e0aaf; Frontend version: 20220203.0 - latest) did resolve the issue for me for the time being So we can gather the change is somewhere in here: (I mean, it seems like the above explanation could still track, but just saying) |
And I guess this is our template for going forward? https://github.com/home-assistant/frontend/pull/11543/files |
Well more relevantly https://github.com/home-assistant/frontend/pull/11591/files |
Hey guys, thanks for the ideas and the discussion. So I feel like the right thing going forward is to move away from HA defined elements, as using them cause the card to break every now and then. The drawback being the increased bundle size, but since at least the mwc element are built with Lit (which I already bundle with the card), the difference shouldn't be massive. Here's a branch with It's untested in HA and themeing is probably not working correctly with HA defined variables. |
No dice on the branch as yet:
Not immediately sure how hard/possible it is to shadow out those sub-elements too. I do (still) suspect tho that it would be okay to both ship the mwc components (so you are sure you can depend on them) and also, in practice, preferentially import the HA-shipped versions (avoiding the double def), using new-fangled module/manifest dynamic import, but I admit I don't fully understand how that (would) work/s (and the impression that it can work may be informed by looking in devtools at a less-productionized webback build on the core frontend that's potentially an artifact of pulling dev channel builds) |
That's exactly what I did with ba4291a#diff-0d1e9e111ee4cf01c8b8f80f8a4e0e2fd735e4ae2e82abf2bf8c24f840791e5aR11-R24 The first error you posted seems strange though, |
We have good news, we found a way for custom cards to define the same elements HA uses! More info and examples on this shortly. |
Here is an example how https://github.com/custom-cards/boilerplate-card/pull/50/files |
Or a simpler example here: piitaya/lovelace-mushroom#133 (comment) We are shipping the scoped-custom-element-registry polyfill with the next HA release |
Thanks @bramkragten, Might not be an issue, haven't read up on the Scoped Custom Element Registries spec fully yet. |
I managed to migrate the mini-climate card (after a lot of trail and error, and based on the boilerplate repo mentioned here) - artem-sedykh/mini-climate-card#67 you can use it as a reference if that helps to fix this repo |
That's why we also define those, and ignore those imports in the rollup config. So it needs some "hacks", but it works... |
Until I've bundled the mwc-elements with the card this fix should do: #616 Beta release here: Let me know |
I copied beta version to \www\community\mini-media-player, but broken dropdown is still there. What am I missing? |
Delete the .gz file You can install beta versions with HACS. just tick the beta versions box. |
Reinstalling from HACS worked, thanks! |
upgrading to beta version fixed the issue! |
upgrading to beta version has worked for me, thank you |
Confirming that the beta solves the issue after upgrading to 2022.3 this morning. thanks ! |
Fix now also available in latest stable release. |
v1.16 which was just released does not solve the problem for me; drop-downs in the card config do not work. Edit: typo in version |
Try clearing your cache |
I did that. I'm seeing the same behaviour on Chrome, Edge & the HA app. HA has been restarted and the caches cleared. |
On chrome the problem is solved, but on IOS and Android tablet with fully kiosk still the same problem. |
Highly likely a caching issue? |
On IOS you can not clear the caching? On Tablet I have done it but still it will not work. Or if you have any other ideas? |
Where do you find the .gz file to delete it? I've updated the the beta and the problem is persisting for me. |
You don't need the beta, just upgrade the card through HACS and clear caches |
I've done the upgrade and cleared the caches on my phone and my pc and the problem is persisting. Can't quite work out why it's persisting |
Here the update works on the pc but not on android tablet and IPhone
Verstuurd vanaf mijn iPhone
… Op 11 mrt. 2022 om 15:04 heeft stronheim ***@***.***> het volgende geschreven:
I've done the upgrade and cleared the caches on my phone and my pc and the problem is persisting. Can't quite work out why it's persisting
|
This is my configuration UI in version 1.16.1, HA 2022.4.7, Chrome 101.0.4951.41. Any advice would be greatly appreciated |
@alex-gillies For some reason the minor releases of the card seems to unpublish themselves on github... |
@kalkih Fixed! Thanks for the quick turnaround! |
mini-media-player uses
paper-menu-button
andpaper-listbox
with the assumption Home Assistant will load these elements.https://github.com/kalkih/mini-media-player/blob/master/src/components/dropdown.js#L57
In 2022.3 these elements are no longer part of Home Assistant, so this will no longer work.
The text was updated successfully, but these errors were encountered: