From b69097b027747ce0c47059795d2cab86352d10bd Mon Sep 17 00:00:00 2001 From: Ole-Kenneth Date: Fri, 30 Oct 2020 14:51:01 +0100 Subject: [PATCH 1/3] Hide precipitation probability with own option --- dist/weather-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/weather-card.js b/dist/weather-card.js index c22792c2..ad9422d6 100644 --- a/dist/weather-card.js +++ b/dist/weather-card.js @@ -297,7 +297,7 @@ class WeatherCard extends LitElement { ` : ""} - ${!this._config.hide_precipitation && + ${!this._config.hide_precipitation_probability && daily.precipitation_probability !== undefined && daily.precipitation_probability !== null ? html` From b9fa11af9bf7a19a1aca5c935ed8a6b212da7ace Mon Sep 17 00:00:00 2001 From: Ole-Kenneth Date: Fri, 30 Oct 2020 15:10:28 +0100 Subject: [PATCH 2/3] hide_precipitation or hide_precipitation_probability --- dist/weather-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/weather-card.js b/dist/weather-card.js index ad9422d6..4e58dcd0 100644 --- a/dist/weather-card.js +++ b/dist/weather-card.js @@ -297,7 +297,7 @@ class WeatherCard extends LitElement { ` : ""} - ${!this._config.hide_precipitation_probability && + ${(!this._config.hide_precipitation || !this._config.hide_precipitation_probability) && daily.precipitation_probability !== undefined && daily.precipitation_probability !== null ? html` From 95be6c27b9c5a3618435c6a949ac02ddb94c37de Mon Sep 17 00:00:00 2001 From: Ole-Kenneth Date: Tue, 16 Feb 2021 15:50:41 +0100 Subject: [PATCH 3/3] Add config option to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e56dd48a..770d106f 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ details: false forecast: true hourly_forecast: false number_of_forecasts: 5 +hide_precipitation_probability: true ``` If you want to show the sunrise and sunset times, make sure the `sun` component is enabled: