-
Notifications
You must be signed in to change notification settings - Fork 186
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
Settings Page Broken Due To Changes in ha-data-table
Custom Element
#718
Comments
Also getting the same issue here. |
Same issue here. Thanks for reporting. |
hello, same issue here |
+1 |
I was able to fix this with some help of ChatGPT, open
to:
be aware of your browser cache, I had to restart home assistant a few times as well as reload the browser window a few times. |
Getting the same error but the fix doesn't work on my case :( Edit: After many reload fix works for me |
+1 >> Fix also did not work |
Fix did work for me |
+1 , fix does not work for me. |
Here's my fix, adding the hass object to the same line in <ha-data-table .hass=${this.hass} .columns=${{name:{title:"Name",grows:!0},value:{title:"Value",grows:!0},controls:{}}} .data=${this.tableData} auto-height> |
+1 >> both fix does not work for me. |
Again, for all those, for whom the fix does not work. 😊 maybe try another browser, private window etc. |
You are right, a new browser instance has helped. |
The fix is not working for me. |
Can you try in private navigation ? It was not working for me but eventually worked :) |
Nothing, not even in private.
But I still have this error in the console:
|
Same here, tried both fixes and each time I completely rebooted the HASS Pi then used a private window in both brave and edge browsers. Same error :( HASS is on a Pi4 |
In my response to @okleinschmidt I wrote that it is now working for me. In extension to this message: I used the change from @genehand and not only restarted HASS but also restarted my PI 4 and closed all open browser instances. After that the error was fixed. |
@lbouriez, @JRDevo thats really strange. Are you using some kind of caching proxy e.g. Nginxreverseproxy? There also should be a gzipped version of the file in the same directory, maybe delete that. I wrote maybe, because I only deleted it in my hass-dev, but my hass-prod works without deleting the .gz. Responses may delay, I'm on vacation for the next 5 days. |
No stress, any help is great! I only use an Ad guard DNS server otherwise everything is standard. |
Hello, yes in my case the issue was CloudFlare, as soon as I used the private IP, refreshing thebcashe worked perfectly |
this worked for me, thank you :) |
It's not working for me either. |
Deleting the Thanks a lot. Browser Mod is working againg! |
@mattjes04 that did the trick! Thanks! |
Using:
and deleting the browser_mod_panel.js.gz worked for me too, thanks :) :)
|
Nice to read that the fix is working for you guys now :) I'm sorry I forgot the .gz first. |
Same Problem here, nothing of the code changings work. but i noticed that my desktop pc is running very very high an CPU load when opening the browser mod table settings. |
The fix worked for me in a browser (Safari, iOS) but did not work in the companion app (again, iOS) until I took the extra step of resetting the frontend cache in the app.
|
Works perfectly well! Thank you! |
The big question is will BM get updated at some point? Today it is this problem but we have another release in a week or so that could break other things. Has this project grown stale? Do alternatives exist? |
That's what I asked myself. Maybe @thomasloven can give us some updates here? |
Add hass to data table for localisation.
Fix advice can maybe be merged into repository like #716. |
Fix instructions for users
As found by others below:
custom_components/browser_mod/browser_mod_panel.js
on your Home Assistant instance.ha-data-table
element in the file and add the attribute.hass=${this.hass}
to it. It should look something like<ha-data-table .hass=${this.hass}...
custom_components/browser_mod/browser_mod_panel.js.gz
.My Home Assistant version: 2024.7.1
Frontend: 2024.0705.0
What I am doing:
Opening the browser mod settings page.
What I expected to happen:
Entire page should load without errors
What happened instead:
All of the Frontend Settings dropdowns do not load their content (sidebar order loads partial content). This seems to have been introduced in 2024.7.1, as it was working in 2024.7.0.
Here is the line in the PR which broke it. You need to either provide a localize function or the
hass
object when usingha-data-table
.Minimal steps to reproduce:
NA
Error messages from the browser console:
This error repeasts 30+ times per render.
By replacing the space in the checkboxes ([ ]) with an X below, I indicate that I:
Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
Have made sure I am using the latest version of the plugin.
Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
The text was updated successfully, but these errors were encountered: