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

2022.3.X Breaks dropdown #66

Closed
regevbr opened this issue Feb 25, 2022 · 18 comments · Fixed by #67
Closed

2022.3.X Breaks dropdown #66

regevbr opened this issue Feb 25, 2022 · 18 comments · Fixed by #67

Comments

@regevbr
Copy link
Collaborator

regevbr commented Feb 25, 2022

You are using paper-menu-button and paper-listbox with the assumption Home Assistant will load these elements.

In 2022.3 these elements are no longer part of Home Assistant, so this will no longer work.

see kalkih/mini-media-player#606 for reference

image

edit:
hotfix exists

@acdcnow
Copy link

acdcnow commented Feb 27, 2022

can confirm that is breaks the dropdown---using 202.3.0b4

image

@regevbr
Copy link
Collaborator Author

regevbr commented Mar 2, 2022

@acdcnow you can use the steps I made here to overcome those issues until the fix I made will be merged and published

@anhnvme
Copy link

anhnvme commented Mar 5, 2022

@regevbr can you fix mini humidifier ? at here https://github.com/artem-sedykh/mini-humidifier ?
Thank you so much

@regevbr
Copy link
Collaborator Author

regevbr commented Mar 5, 2022

@regevbr can you fix mini humidifier ? at here https://github.com/artem-sedykh/mini-humidifier ? Thank you so much

I don't use it, and I don't have a humidifier to test it with. Also, it took me a gooe couple of hours to fix, so I will be more inclined to fix once I get a feedback here from the maintainer about this fix...

@anhnvme
Copy link

anhnvme commented Mar 5, 2022

@regevbr can you fix mini humidifier ? at here https://github.com/artem-sedykh/mini-humidifier ? Thank you so much

I don't use it, and I don't have a humidifier to test it with. Also, it took me a gooe couple of hours to fix, so I will be more inclined to fix once I get a feedback here from the maintainer about this fix...

Yes, anyway thank you so much. i will wait for author ....

@regevbr
Copy link
Collaborator Author

regevbr commented Mar 7, 2022

@regevbr can you fix mini humidifier ? at here https://github.com/artem-sedykh/mini-humidifier ? Thank you so much

done :-)

@anhnvme
Copy link

anhnvme commented Mar 7, 2022

@regevbr can you fix mini humidifier ? at here https://github.com/artem-sedykh/mini-humidifier ? Thank you so much

done :-)

wow, it's amazing. thank you so much, it's work perfectly !

@Mithrox
Copy link

Mithrox commented Mar 9, 2022

Is there a timeframe as to when the beta version is released? I still have the issues with the dropdown before being, and therefore the card being much higher than it used to be, and unfortunately I did not get the fix posted above to work. So I don't mind waiting for the release, but as far as I can see there has been no release yet?

@regevbr
Copy link
Collaborator Author

regevbr commented Mar 9, 2022

Is there a timeframe as to when the beta version is released? I still have the issues with the dropdown before being, and therefore the card being much higher than it used to be, and unfortunately I did not get the fix posted above to work. So I don't mind waiting for the release, but as far as I can see there has been no release yet?

Sadly the maintainer is unresponsive for now... Maybe I can help you get the fix working, please post more details

@Mithrox
Copy link

Mithrox commented Mar 9, 2022

That would be great. The way it looks like right now is as others above.

image

I tried using the new content for the js-file, but I am a bit unsure if I can use it since this is a different card than the one you referred your fix to.

Also I am struggling with finding the lovelace folder, it doesnt exist for me, I did find a "lovelace_resources" file under .storage but that was the only thing remotely fitting to the description. I tried changing both, but since it did not give any change, I restored back to what was before.

I will provide any info you need of course, it's great that you're willing to help when the original author isn't active.

@regevbr
Copy link
Collaborator Author

regevbr commented Mar 9, 2022

what do you mean this is a different card? you don't have a file under your configuration directory called <config dir>/www/community/mini-climate-card/mini-climate-card-bundle.js?

@regevbr
Copy link
Collaborator Author

regevbr commented Mar 9, 2022

About the resources, you need to nvaigate to <your HA ip/url>/config/lovelace/resources and find it there:
image

@Mithrox
Copy link

Mithrox commented Mar 9, 2022

Sorry, I worded it wrong. I saw others were using it for humidifiers but I guess that do not really change the frontend at all. My bad. Yes, I do have the same as you showed on the picture above, I misunderstood and was looking for it in the /config folder in the structure.

image

So first off, for the update of the number, I just open this above and just change the latest digit to a higher number?

When it comes to the content of the mini-climate-card-bundle.js file, do I just open it, and replace all the content with the VERY long line referenced in the post above? And then remove the gz file. Do I need to restart HA after, or just update the number on the module and then refresh the page?

image

@Mithrox
Copy link

Mithrox commented Mar 9, 2022

And that did it :) Sorry for being slow and not getting it, but now it's working.

Thank you so much for your patience and help, really appreciate it.

@regevbr
Copy link
Collaborator Author

regevbr commented Mar 9, 2022

The humidifier card from the same author is suffering from the same problem, and I fixed it also, independently from this card, as per the requests here. This is not related to your issue.
Yes, you should completely overwrite that very long line, and delete the gz file (/www/community/mini-climate-card/mini-climate-card-bundle.js.gz`), after you do that, change any of the numbers there (id doesn't matter which one, or if it is bigger or smaller) and then refresh your browser and you should see the issue fixed

@anhnvme
Copy link

anhnvme commented Mar 9, 2022

The humidifier card from the same author is suffering from the same problem, and I fixed it also, independently from this card, as per the requests here. This is not related to your issue.
Yes, you should completely overwrite that very long line, and delete the gz file (/www/community/mini-climate-card/mini-climate-card-bundle.js.gz`), after you do that, change any of the numbers there (id doesn't matter which one, or if it is bigger or smaller) and then refresh your browser and you should see the issue fixed

Hello,

I think really good if you can fork a version then become to a new maintainer. Like localtuya project of home assisstant. You are really good author when you reply every comment.

Please left a beer link. I will buy you a beer / coffee.

@regevbr
Copy link
Collaborator Author

regevbr commented Mar 9, 2022

Thanks for your kind words.

I don't think we are quite there yet, and in any case, I will not do such a move without the author's consent. In addition, I'm not a frontend guy, just hearing about CSS still makes me shiver :-), I like solving puzzles and fixing stuff, especially when I'm too impatient to wait for others to do it.

@anhnvme
Copy link

anhnvme commented Mar 9, 2022

That fine. Anyway. Again. Thank you bro !
and thank to author !

artem-sedykh added a commit that referenced this issue Mar 13, 2022
fix #66: 2022.3.X Breaks dropdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants