From fe5d44b5361fb6d28b98fe07c1342fc8fd4f1173 Mon Sep 17 00:00:00 2001 From: golles Date: Fri, 3 Jun 2022 11:19:51 +0000 Subject: [PATCH 1/2] Fix: Forecast precipitation to precipitation probability --- custom_components/knmi/weather.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/knmi/weather.py b/custom_components/knmi/weather.py index ba7a49e..9c98955 100644 --- a/custom_components/knmi/weather.py +++ b/custom_components/knmi/weather.py @@ -7,7 +7,7 @@ ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, - ATTR_FORECAST_PRECIPITATION, + ATTR_FORECAST_PRECIPITATION_PROBABILITY, ATTR_FORECAST_WIND_BEARING, ATTR_FORECAST_WIND_SPEED, WeatherEntity, @@ -119,7 +119,7 @@ def forecast(self): if super().getData(f"d{i}tmax") is not None else None ) - precipitation = ( + precipitation_probability = ( float(super().getData(f"d{i}neerslag")) if super().getData(f"d{i}neerslag") is not None else None @@ -139,7 +139,7 @@ def forecast(self): ATTR_FORECAST_CONDITION: condition, ATTR_FORECAST_TEMP_LOW: temp_low, ATTR_FORECAST_TEMP: temp, - ATTR_FORECAST_PRECIPITATION: precipitation, + ATTR_FORECAST_PRECIPITATION_PROBABILITY: precipitation_probability, ATTR_FORECAST_WIND_BEARING: wind_bearing, ATTR_FORECAST_WIND_SPEED: wind_speed, "sun_chance": sun_chance, From fa97799643a3706b2f4e0f3ea74d552a073d51d5 Mon Sep 17 00:00:00 2001 From: golles Date: Fri, 3 Jun 2022 11:27:43 +0000 Subject: [PATCH 2/2] Update hacs.json, removed not allowed keys --- hacs.json | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/hacs.json b/hacs.json index eee2cf3..902390d 100644 --- a/hacs.json +++ b/hacs.json @@ -1,10 +1,5 @@ { "name": "knmi", - "hacs": "1.6.0", - "domains": [ - "binary_sensor", - "sensor", - "switch" - ], - "homeassistant": "0.118.0" + "homeassistant": "2022.2.0", + "render_readme": true } \ No newline at end of file