decompil3d / lovelace-hourly-weather

Hourly weather card for Home Assistant. Visualize upcoming weather conditions as a colored horizontal bar.
MIT License
293 stars 31 forks source link

Temporary error upon loading the card #586

Closed afarago closed 6 months ago

afarago commented 9 months ago

Checklist:

Release with the issue: 5.3.0

Last working release (if known):

Browser and Operating System: Version 119.0.6045.160 (Official Build) (64-bit) Windows 11

Description of problem: Initial loading of the page shows an error, that disappears in <1 sec, still is quite disturbing. image

This comes upw even with the simplest layout of the card.

Javascript errors shown in the web inspector (if applicable): none

Additional information: example config tested:

type: custom:hourly-weather
entity: weather.home
decompil3d commented 9 months ago

Interesting, I wonder if this is a result of the recent change to use a web service call to get forecasts from HA. Perhaps we can hold off on showing errors if the web service call hasn't completed yet. If someone has time to look at this I can look at a PR. Otherwise, I'll get to this when I can.

evilmouse69 commented 8 months ago

I also got the same error come up on my little wall panel

IMG_7597

afarago commented 8 months ago

So in the past days I was able to debug the problem, and get the root cause.

I have an initial suggestion, please feel to review the PR and comment/modify.