weather-chart-card
weather-chart-card copied to clipboard
"undefined.svg" or generic fallback if provider has no data
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