mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Fix climacell hourly and nowcast forecasts (#60454)
This commit is contained in:
parent
e1036f3c71
commit
bae01ca7d8
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user