UI icon indicating copy to clipboard operation
UI copied to clipboard

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

Open thomasfals opened this issue 3 years ago • 3 comments

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.

thomasfals avatar Jan 27 '22 10:01 thomasfals

Same here since updating to 0.04 in HACS

willyp713 avatar Jan 28 '22 05:01 willyp713

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

Tommatheussen avatar Mar 02 '22 08:03 Tommatheussen

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

stokkie90 avatar Mar 02 '22 08:03 stokkie90