mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Hourly forecast time is string (#70390)
This commit is contained in:
parent
3460abba54
commit
2ea2e2e65b
@ -212,7 +212,7 @@ def get_forecast(ec_data, hourly):
|
||||
for hour in ec_data.hourly_forecasts:
|
||||
forecast_array.append(
|
||||
{
|
||||
ATTR_FORECAST_TIME: hour["period"],
|
||||
ATTR_FORECAST_TIME: hour["period"].isoformat(),
|
||||
ATTR_FORECAST_TEMP: int(hour["temperature"]),
|
||||
ATTR_FORECAST_CONDITION: icon_code_to_condition(
|
||||
int(hour["icon_code"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user