amaximus / garbage-collection-card

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

Lovelace card not working since 0.118 [BUG] #58

Closed sr-as2 closed 3 years ago

sr-as2 commented 3 years ago

Describe the bug The lovelace card is not visible (no error on the frontend) since the last update 0.118.

To Reproduce Steps to reproduce the behavior:

  1. Update to 0.118
  2. Clear browser cache

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

amaximus commented 3 years ago

Could you please provide more detail on the issue? Browser console error or warning messages would help a lot.

After upgrading mine to 0.118.0, cards still load without issues. garbage118_0

sr-as2 commented 3 years ago

Your right, i need to bring some details.

When i launch the chrome console i can see this:

image

My lovelace card configuration:

      - type: 'custom:garbage-collection-card'
        entity: sensor.poubelles
        icon_size: 40px
        icon_color: green
        title_size: 15px
        due_1_color: red
        hide_date: true

This morning, when i clic on the garbage card, it disapear... There is no error on the frontend. I don't knwo what i'm doing wrong

amaximus commented 3 years ago

It's not a bug. It's a feature :) .

Version 1.7.0 introduced the feature of clicking the icon on a card when collection day is today or tomorrow, hides the card until the day after due date (or if hide_before is used then until X days before next due date). Version 1.8.0 made clicking valid for the whole card (not only the icon).

This is also mentioned in the README file [3].

On the other hand the warning message in the browser console is harmless and should be discarded.

[1] https://github.com/amaximus/garbage-collection-card/releases/tag/1.7.0 [2] https://github.com/amaximus/garbage-collection-card/releases/tag/1.8.0 [3] https://github.com/amaximus/garbage-collection-card/blame/master/README.md#L44

sr-as2 commented 3 years ago

Ha ok thanks, sorry for that!