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

Error with HA 2022.03 update #6

Open
Krojack opened this issue Mar 3, 2022 · 9 comments
Open

Error with HA 2022.03 update #6

Krojack opened this issue Mar 3, 2022 · 9 comments

Comments

@Krojack
Copy link

Krojack commented Mar 3, 2022

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:/hacsfiles/lovelace-auto-reload-card/auto-reload-card.js:29:32 Uncaught TypeError: Cannot read properties of null (reading 'querySelector')

@Protoncek
Copy link

Yep. And it doesn't update lovelace anymore. Please fix it... it's very usefull card.

@adamfreefall
Copy link

Temporary fix:
In file: auto-reload-card.js
replace line:
const refresh = buttonMenu.querySelector('[aria-label=Refresh]');
with:
const refresh = null;

@rjenx
Copy link

rjenx commented Jun 15, 2022

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.

@kwithus
Copy link

kwithus commented Jun 22, 2022

will there be a permanent fix?

@ben8p
Copy link
Owner

ben8p commented Jun 22, 2022

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

@rjenx
Copy link

rjenx commented Jun 22, 2022

Uninstalled the component until a fix is available and still getting the error, I guess somewhere there is residual code.

@ben8p
Copy link
Owner

ben8p commented Jun 22, 2022

I think Lovelace has a cache. You need to refresh it

@zSprawl
Copy link

zSprawl commented Jul 8, 2022

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.

@zSprawl
Copy link

zSprawl commented Jul 8, 2022

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.

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

No branches or pull requests

7 participants