lovelace-auto-reload-card
lovelace-auto-reload-card copied to clipboard
Error with HA 2022.03 update
Started getting the following error after updating to the March HA build.
2022-03-03 18:08:05 ERROR (MainThread) [frontend.js.latest.202203010] https://homeassistant.lan:
Yep. And it doesn't update lovelace anymore. Please fix it... it's very usefull card.
Temporary fix: In file: auto-reload-card.js replace line: const refresh = buttonMenu.querySelector('[aria-label=Refresh]'); with: const refresh = null;
I have the same issue, tried your fix but it did not work for me. Running 2022.6.6 Not sure how long this error has been there.
will there be a permanent fix?
Hi, Thanks you for reporting. I don't have enough time right now to investigate and make a fix but if anyone wants to make a PR, I'd be happy to merge it
Uninstalled the component until a fix is available and still getting the error, I guess somewhere there is residual code.
I think Lovelace has a cache. You need to refresh it
Any ideas how you clear this cache?
I used the SSH addon and found the auto-reload-card.js file in config/www/custom_components/lovelace-auto-reload-card/ and I've edited it with the fix above.
I have obviously rebooted and of course cleared the browser local cache.
I can even go to the url of:
http://192.168.100.69:8123/hacsfiles/lovelace-auto-reload-card/auto-reload-card.js
And here I can clearly see the fix mentioned above has not been applied to the expected file.
In the meantime, I was able to copy the file to a location I could reach, change the resource link, and reboot to validate the fix does indeed work.
Also in reflection, I think the error only appeared when the tablet user fires off (which doesn't have admin rights). I don't know if that could be related.