Fix Climacell timezone issue with daily forecasts (#47402)

This commit is contained in:
Raman Gupta 2021-03-04 16:21:56 -05:00 committed by GitHub
parent fa8ded5ad8
commit 74746125ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -254,6 +254,7 @@ class ClimaCellWeatherEntity(ClimaCellEntity, WeatherEntity):
if self.forecast_type == DAILY:
use_datetime = False
forecast_dt = dt_util.start_of_local_day(forecast_dt)
precipitation = self._get_cc_value(
forecast, CC_ATTR_PRECIPITATION_DAILY
)