From c996b840d27a4cdae1d6bdf98369faea29ed22f5 Mon Sep 17 00:00:00 2001 From: Guy Khmelnitsky <3136012+GuyKh@users.noreply.github.com> Date: Thu, 8 Jun 2023 15:30:54 +0300 Subject: [PATCH] Fix HeatStress problem (#51) --- custom_components/ims/manifest.json | 4 ++-- custom_components/ims/weather.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/ims/manifest.json b/custom_components/ims/manifest.json index 145bb1f..4eee0e1 100644 --- a/custom_components/ims/manifest.json +++ b/custom_components/ims/manifest.json @@ -6,6 +6,6 @@ "documentation": "https://github.com/t0mer/ims-custom-component", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/t0mer/ims-custom-component/issues", - "requirements": ["weatheril>=0.31.0"], - "version": "0.1.14" + "requirements": ["weatheril>=0.31.1"], + "version": "0.1.15" } diff --git a/custom_components/ims/weather.py b/custom_components/ims/weather.py index 226c1c1..aff1795 100644 --- a/custom_components/ims/weather.py +++ b/custom_components/ims/weather.py @@ -289,7 +289,7 @@ def forecast(self): ATTR_FORECAST_TIME: hourly_forecast.forecast_time.astimezone( pytz.UTC ).isoformat(), - ATTR_FORECAST_NATIVE_TEMP: hourly_forecast.temperature, + ATTR_FORECAST_NATIVE_TEMP: hourly_forecast.precise_temperature, ATTR_FORECAST_NATIVE_TEMP_LOW: daily_forecast.minimum_temperature, ATTR_FORECAST_CONDITION: WEATHER_CODE_TO_CONDITION[last_weather_code], ATTR_FORECAST_NATIVE_PRECIPITATION: hourly_forecast.rain,