artem-sedykh / mini-climate-card

Minimalistic climate card for Home Assistant Lovelace UI
MIT License
262 stars 19 forks source link

2022.3.X Breaks dropdown #66

Closed regevbr closed 2 years ago

regevbr commented 2 years ago

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 https://github.com/kalkih/mini-media-player/issues/606 for reference

image

edit: hotfix exists

acdcnow commented 2 years ago

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

image

regevbr commented 2 years ago

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

anhnvme commented 2 years ago

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

regevbr commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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

done :-)

anhnvme commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

Mithrox commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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