Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"undefined.svg" or generic fallback if provider has no data #207

Open
majorsl opened this issue Jul 6, 2024 · 2 comments
Open

"undefined.svg" or generic fallback if provider has no data #207

majorsl opened this issue Jul 6, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@majorsl
Copy link

majorsl commented Jul 6, 2024

Describe the bug
Rarely, but on occasion I've seen my provider return an "undefined" for a condition icon. This results in the card displaying a broken image.

To Reproduce
Steps to reproduce the behavior:
Just wait for a provider to provide an unknown or undefined condition.

Expected behavior
If possible, the card should have some logic to fallback to a generic icon in the event a provider is missing something. I've seen other cards use an "undefined.svg" for this situation.

Desktop (please complete the following information):

  • 2.4.7
  • HA Docker 2024.7.1
  • OS: Docker
  • Edge/Chrome
  • 126.0
@majorsl majorsl added the bug Something isn't working label Jul 6, 2024
@Eisbaer2
Copy link

Same here

@MHerbst
Copy link

MHerbst commented Sep 3, 2024

I have got the same problem in combination with the DWD weather integration that does not provide a value for the current day.
In this case the card tries to load this icon: https://cdn.jsdelivr.net/gh/mlamberts78/weather-chart-card/dist/icons/undefined.svg that does not exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants