Fix climacell hourly and nowcast forecasts (#60454)
This commit is contained in:
parent
e1036f3c71
commit
bae01ca7d8
1 changed files with 2 additions and 1 deletions
|
@ -377,12 +377,13 @@ class ClimaCellWeatherEntity(BaseClimaCellWeatherEntity):
|
||||||
precipitation_probability = values.get(CC_ATTR_PRECIPITATION_PROBABILITY)
|
precipitation_probability = values.get(CC_ATTR_PRECIPITATION_PROBABILITY)
|
||||||
|
|
||||||
temp = values.get(CC_ATTR_TEMPERATURE_HIGH)
|
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_direction = values.get(CC_ATTR_WIND_DIRECTION)
|
||||||
wind_speed = values.get(CC_ATTR_WIND_SPEED)
|
wind_speed = values.get(CC_ATTR_WIND_SPEED)
|
||||||
|
|
||||||
if self.forecast_type == DAILY:
|
if self.forecast_type == DAILY:
|
||||||
use_datetime = False
|
use_datetime = False
|
||||||
|
temp_low = values.get(CC_ATTR_TEMPERATURE_LOW)
|
||||||
if precipitation:
|
if precipitation:
|
||||||
precipitation = precipitation * 24
|
precipitation = precipitation * 24
|
||||||
elif self.forecast_type == NOWCAST:
|
elif self.forecast_type == NOWCAST:
|
||||||
|
|
Loading…
Add table
Reference in a new issue