Fix Climacell timezone issue with daily forecasts ()

pull/47412/head
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
1 changed files with 1 additions and 0 deletions
homeassistant/components/climacell

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
)