From 3aa9e2b4fd45ae3659e4531f341b46d31a87dfc1 Mon Sep 17 00:00:00 2001 From: David Kalbermatten <45201085+david-kalbermatten@users.noreply.github.com> Date: Tue, 18 Aug 2020 13:27:56 +0200 Subject: [PATCH] Add rounding to precipitation (#66) Co-authored-by: Diogo Gomes Co-authored-by: Bram Kragten --- dist/weather-card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/weather-card.js b/dist/weather-card.js index f1c342a1..9b8e7fad 100644 --- a/dist/weather-card.js +++ b/dist/weather-card.js @@ -293,7 +293,7 @@ class WeatherCard extends LitElement { daily.precipitation !== null ? html`
- ${daily.precipitation} ${this.getUnit("precipitation")} + ${Math.round(daily.precipitation*10)/10} ${this.getUnit("precipitation")}
` : ""} @@ -302,7 +302,7 @@ class WeatherCard extends LitElement { daily.precipitation_probability !== null ? html`
- ${daily.precipitation_probability} ${this.getUnit("precipitation_probability")} + ${Math.round(daily.precipitation_probability)} ${this.getUnit("precipitation_probability")}
` : ""}