amaximus / garbage-collection-card

Custom Lovelace card for Garbage Collection custom component
MIT License
128 stars 24 forks source link

Chyba po aktualizaci #47

Closed modern74 closed 3 years ago

modern74 commented 3 years ago

Dobrý den,

po aktualizaci na nejnovější verzi 1.10.1 se vyskytla tato chyba. Garbage

Vrátil jsem se zpět k předešlé verzi, tam je to v pořádku.

Děkuji Petr

amaximus commented 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'}
amaximus commented 3 years ago

The above solution was confirmed to fix issue. Could you please try it out and get back to me with results?

modern74 commented 3 years ago

Same error even after upgrading to version 1.12.0 I have HA version 0.116.2

amaximus commented 3 years ago

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'}
modern74 commented 3 years ago

of course, I have added in configuration.yaml

but I have also added in HA sources .... stažený soubor

When I tried to delete this, the app did not load at all.

amaximus commented 3 years ago

Could you please clear your browser can and shift-reload the page? (or ctrl-reload depending on the browser)

modern74 commented 3 years ago

yes, but no change. the latest functional version is 1.10.0. all other versions don't work for me.

amaximus commented 3 years ago

After adding the lovelace resource did you restart Home Assistant? Updating configuration.yaml usually needs a restart.

modern74 commented 3 years ago

Yes, everytime

modern74 commented 3 years ago

It doesn't work in the new version 1.15.0 garbage either. I enclose an error extract from the log.

amaximus commented 3 years ago

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

modern74 commented 3 years ago

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!