pgorod / power-todoist-card

Improved Todoist card for Home Assistant Lovelace UI.
MIT License
20 stars 7 forks source link

[BUG] Upgrading Core to Version 2023.12.0 Prevents Card From Showing #6

Closed colinhatfield closed 6 months ago

colinhatfield commented 6 months ago

Before submitting a bug

Describe the bug The card no longer displays, instead an error is shown "Sensors don't have any data yet. Please wait a few seconds and refresh."

To Reproduce Steps to reproduce the behavior:

  1. Add a card of type: custom:powertodoist-card to any dashboard
  2. Update the Core Version to 2023.12.0
  3. Via a browser or using the mobile app, an error message replaces the usual card

Expected behavior I expected the card to be displayed, as per previous versions

Versions:

colinhatfield commented 6 months ago

Unsure if this is related to the work mentioned here - https://www.home-assistant.io/blog/2023/12/06/release-202312/#more-to-do

pgorod commented 6 months ago

Hi. Thanks for the bug report. I haven't upgraded yet (I always wait a few days, or for the next minor version, before upgrading, for caution).

I don't think any of the work done in core HASS regarding to-do lists would affect my add-on in any way.

Do you have data in the sensors? I mean, if you look at it from Developer Tools / States, and search for your sensor name there, do you see it getting data from Todoist?

I would also recommend a full server reboot to see if that makes a difference. Not just a HASS restart, but an OS restart.

colinhatfield commented 6 months ago

Hi, I appreciate the quick response.

Choosing another card type such as type: custom:todoist-card shows the Todoist data fine so it appears to be specific to this card.

I've just done a full system reboot and that hasn't helped unfortunately.

pgorod commented 6 months ago

I just tried upgrading my system and rebooted. My cards work fine...

Did you upgrade both the OS and the front end? There were two upgrades recently... Check if you have more upgrades waiting.

colinhatfield commented 6 months ago

I'm fully up-to-date according to HA: Core 2023.12.0 Supervisor 2023.11.6 Operating System 11.2 Frontend 20231206.0

colinhatfield commented 6 months ago

I've figured it out, the command_line entry for label_colors was missing from my configuration.yaml.

Re-adding it has done the trick.

Thanks for your help