mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Fix climacell hourly and nowcast forecasts (#60454)
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user