Closed modern74 closed 3 years ago
Are you using the card within another card? (e.g. stacked vertically or horizontally?)
The setConfig function is invoked by HASS frontend, it's not actively used in the card itself.
Do you have the Lovelace resource defined in the configuration.yaml?
lovelace:
resources:
- {type: js, url: '/hacsfiles/garbage-collection-card/garbage-collection-card.js'}
The above solution was confirmed to fix issue. Could you please try it out and get back to me with results?
Same error even after upgrading to version 1.12.0 I have HA version 0.116.2
Yes, but do you have the following lines in your configuration.yaml? If not, please add them.
lovelace:
resources:
- {type: js, url: '/hacsfiles/garbage-collection-card/garbage-collection-card.js'}
of course, I have added in configuration.yaml
but I have also added in HA sources ....
When I tried to delete this, the app did not load at all.
Could you please clear your browser can and shift-reload the page? (or ctrl-reload depending on the browser)
yes, but no change. the latest functional version is 1.10.0. all other versions don't work for me.
After adding the lovelace resource did you restart Home Assistant? Updating configuration.yaml usually needs a restart.
Yes, everytime
It doesn't work in the new version 1.15.0 either. I enclose an error extract from the log.
Thanks for the error message, this helped a lot. Line 16 [1] indicated issue with the language file that is in JSON format. Presuming that you are using the Czech translation, I checked the cs.json and indeed the JSON was missing a closing curl bracket as per [2].
I fixed it in the new 1.15.1 release. Please update your card and get back to me with results.
[1] https://github.com/amaximus/garbage-collection-card/blob/master/dist/garbage-collection-card.js#L16 [2] https://github.com/amaximus/garbage-collection-card/commit/7dbf8176662666551d095c4cd3c442cce7d18c92
Thank you for a quick response :) I have to confirm that in this new version 1.15.1 the card is already working properly. Many thanks!
Dobrý den,
po aktualizaci na nejnovější verzi 1.10.1 se vyskytla tato chyba.
Vrátil jsem se zpět k předešlé verzi, tam je to v pořádku.
Děkuji Petr