From 2ea2e2e65be32af76e5c5abcd47ad0f6162cc575 Mon Sep 17 00:00:00 2001 From: duncanvanzyl <86380975+duncanvanzyl@users.noreply.github.com> Date: Tue, 26 Apr 2022 12:45:33 -0400 Subject: [PATCH] Hourly forecast time is string (#70390) --- homeassistant/components/environment_canada/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/environment_canada/weather.py b/homeassistant/components/environment_canada/weather.py index 1b81750fb47..b79323b0462 100644 --- a/homeassistant/components/environment_canada/weather.py +++ b/homeassistant/components/environment_canada/weather.py @@ -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"])