Fix climacell hourly and nowcast forecasts (#60454)

This commit is contained in:
Raman Gupta 2021-11-28 10:44:43 -05:00 committed by GitHub
parent e1036f3c71
commit bae01ca7d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -377,12 +377,13 @@ class ClimaCellWeatherEntity(BaseClimaCellWeatherEntity):
precipitation_probability = values.get(CC_ATTR_PRECIPITATION_PROBABILITY)
temp = values.get(CC_ATTR_TEMPERATURE_HIGH)
temp_low = values.get(CC_ATTR_TEMPERATURE_LOW)
temp_low = None
wind_direction = values.get(CC_ATTR_WIND_DIRECTION)
wind_speed = values.get(CC_ATTR_WIND_SPEED)
if self.forecast_type == DAILY:
use_datetime = False
temp_low = values.get(CC_ATTR_TEMPERATURE_LOW)
if precipitation:
precipitation = precipitation * 24
elif self.forecast_type == NOWCAST: