Closed mweinelt closed 4 years ago
The attributes only show the current condition, the min/max and precipitation are forecasts and not the current.
I would advise to add forecast data for the current day, the current values don't say much about the rest of the day.
Thanks for the advise.
Checklist
The problem
I'm currently writing a weather entity and I've run into a problem.
When
I can resolve this by including todays data in the forecast array, but then today is included in the forecast display, which makes it feel like a crude workaround.
Expected behavior
Show precipitation as seconday attribute only if data suggests it for the current day.
Steps to reproduce
This is cumbersome to reproduce, since it depends on the behaviour of the weather entity which is not well specced in that regard. I'm currently working on the bright sky integration, where I stumbled upon this.
Environment
State of relevant entities
My weather entity (including today = 2020-07-25) shows:
Today is saturday, and the weather-forecast card looks like so:
If I remove the current day from the forecast it looks like this:
Note how it is not supposed to rain today (saturday) and the precipitation is still shown for what I would interpret as today.
Problem-relevant configuration
n/a
Javascript errors shown in your browser console/inspector
n/a
Additional information