UI-Lovelace-Minimalist / UI

UI-Lovelace-Minimalist is a "theme" for HomeAssistant
https://ui-lovelace-minimalist.github.io/UI/
Other
1.64k stars 430 forks source link

Reloading UI Lovelace Minimalist from server control page in Home Assistant no longer works #340

Open thomasfals opened 2 years ago

thomasfals commented 2 years ago

Describe the bug Reloading UI Lovelace Minimalist from server control page in Home Assistant no longer works

To Reproduce Update to v.0.04

  1. Go to 'http://SERVERIP:8123/config/server_control'
  2. Click on 'UI Lovelace Minimalis'

Expected behavior UI Lovelace Minimalist yaml would reload

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

Additional context Add any other context about the problem here.

willyp713 commented 2 years ago

Same here since updating to 0.04 in HACS

Tommatheussen commented 2 years ago

I came across this as well when debugging some custom cards, what I found is that it does reload, but it doesn't clear the browsers cache. If you change your dashboard page itself, Lovelace will reload the resources correctly without needing to restart

stokkie90 commented 2 years ago

It will copy any changes in the ui_lovelace_minimalist/custom_cards to the button templates directory within the hacs integration. A refresh of the browser is not included currently. I have some ideas about it and got it sort of working once.

https://github.com/UI-Lovelace-Minimalist/UI/blob/main/custom_components/ui_lovelace_minimalist/configure.py#L102

To test if it works. Make changes to your custom cards, hit reload ulm and check if the changes are also now in custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/custom_cards