Skip to content

Commit

Permalink
fix: Remove min temp from Hourly forecasts and add humidity (#122)
Browse files Browse the repository at this point in the history
* fix: Remove min temp from Hourly forecasts

* add humidity
  • Loading branch information
GuyKh authored Nov 7, 2024
1 parent 27569d9 commit 541d761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/ims/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ def _forecast(self, hourly: bool) -> list[Forecast]:
Forecast(
condition=WEATHER_CODE_TO_CONDITION[hourly_weather_code],
datetime=hourly_forecast.forecast_time.isoformat(),
humidity=hourly_forecast.relative_humidity,
native_temperature=hourly_forecast.precise_temperature,
native_templow=daily_forecast.minimum_temperature,
native_precipitation=hourly_forecast.rain,
precipitation_probability=hourly_forecast.rain_chance,
wind_bearing=WIND_DIRECTIONS[
hourly_forecast.wind_direction_id
],
precipitation_probability=hourly_forecast.rain_chance,
native_wind_speed=hourly_forecast.wind_speed,
uv_index=hourly_forecast.u_v_index,
)
Expand Down

0 comments on commit 541d761

Please sign in to comment.