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 Paulus Schoutsen
parent 6724d86565
commit ee55a04b4b

View File

@ -260,6 +260,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
)