Closed vencakratky closed 4 years ago
here too:
Using version 0.5.1 on Home Assistant 0.106.0 .
same problem here.
Cannot assign to read only property 'min' of object '#<Object>'
I also get problems on all of my dual gauge instances. with 106.0
JS console confirms that line 22, where it attempts to assign a value to this.config.min
, is the problem. Possibly related to this frontend change? Not quite sure - maybe someone with a bit more experience can chime in.
This is due to changes in version 0.106, also see https://github.com/custom-cards/dual-gauge-card/issues/22
Is there a solution for that problem or you we only "know" what the problem is?
I get same error and another...: Cannot assign to read only property '0' of object '[object Array]'
Until there's an official fix out, per #22, you can replace line 19 of dual-gauge-card.js with
this.config = JSON.parse(JSON.stringify(config));
as a workaround.
Until there's an official fix out, per #22, you can replace line 19 of dual-gauge-card.js with
config = JSON.parse(JSON.stringify(config));
as a workaround.
For me not working
ETA: oops, my bad. See my fixed version above.
You may also have to delete the dual-gauge-card.js.gz file to be sure your modification loads.
Until there's an official fix out, per #22, you can replace line 19 of dual-gauge-card.js with
this.config = JSON.parse(JSON.stringify(config));
as a workaround.
This works!!! Be sure to delete "dual-gauge-card.js.gz ".
So, i tried this: 1.) edit /config/www/dual-gauge-card.js: 2.) Download this edited file 3.) Via "File Editor" in HA delete dual-gauge-card.js 4.) Reload Core (in File Editor) 5.) Upload again edited file dual-guage-card.js to /config/www/dual-gauge-card.js 6.) Again Reload Core or Restart HA
Now dual-gauge-card are back ! :-) Please try somebody else this procedure. After i close this issue
No chance here, sorry! Tested it with HACS and manual installation (www and www/community folder)
There is no difference between before!
So, i tried this: 1.) edit /config/www/dual-gauge-card.js: 2.) Download this edited file 3.) Via "File Editor" in HA delete dual-gauge-card.js 4.) Reload Core (in File Editor) 5.) Upload again edited file dual-guage-card.js to /config/www/dual-gauge-card.js 6.) Again Reload Core or Restart HA
Now dual-gauge-card are back ! :-) Please try somebody else this procedure. After i close this issue
Your procedure worked for me, I have my card back! Thank-you.
There was still a problem with Home Assistant APP under iOS. You have to "Reset frontend cache" in Application setting and restart HA app
I updated yesterday evening and got the same error afterwards. This fix did the trick so thanks very much!!
I tested the fix:
Upgraded to 0.106.1 last night from 1.105.x (i forget which, but the more recent) and also encounter this issue. This fix did not work for me. I removed thegz file, cleared my cache, tried a "fresh" browser.
Upgraded to 0.106.1 last night from 1.105.x (i forget which, but the more recent) and also encounter this issue. This fix did not work for me. I removed thegz file, cleared my cache, tried a "fresh" browser.
After some tinkering...
I changed the
this.config = JSON.parse(JSON.stringify(config));
to
config = JSON.parse(JSON.stringify(config));
and it worked.
config = JSON.parse(JSON.stringify(config));
Worked for me.
If i try" config = JSON.parse(JSON.stringify(config));" , become error
On latest version if you set the top line as mentioned above
this.config = JSON.parse(JSON.stringify(config));
you will have to also remove this line as it's setting it again with the parameter and the new line you added would get overridden.
BTW, if you have ssh access to HA, no need to delete the js.gz file. Just change to that directory and run gzip -k dual-gauge-card.js
Don't forget -k
modifier otherwise it will delete the js file after compressing it into gz
Will somebody push the fix to github? so that we all get a new version? thx!
That fix works, thanks all!
... now wait for merging..........................................................................
Sorry @Rocka84 to contact you in office. We all try to get in contact with you :) and it was not transparent, that this Plugin was a private thing. I apologize!
best regards rené
Hi! This issue was fixed with #29, thanks again @lebherz @lebherz again: Apology accepted and sorry if I my answer was a bit harsh. After all you were right, I really should have taken more care of this project.
Hello, after update 0.106 dual-gauge-card not working