From cd23625fb574c4bb08c0aa3d4b042f0bc0d7f843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Hallstr=C3=B6m?= Date: Tue, 4 Oct 2022 10:22:45 +0200 Subject: [PATCH] chore: correctly reference apparent temp method --- CHANGELOG.md | 2 ++ modules/default/weather/providers/smhi.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bc851268f..3b1dacfff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ _This release is scheduled to be released on 2023-01-01._ ### Fixed +- Correctly show apparent temperature in SMHI weather provider + ## [2.21.0] - 2022-10-01 Special thanks to: @BKeyport, @buxxi, @davide125, @khassel, @kolbyjack, @krukle, @MikeBishop, @rejas, @sdetweil, @SkySails and @veeck diff --git a/modules/default/weather/providers/smhi.js b/modules/default/weather/providers/smhi.js index 5e1ef4a3db..c42b460b9b 100644 --- a/modules/default/weather/providers/smhi.js +++ b/modules/default/weather/providers/smhi.js @@ -144,7 +144,7 @@ WeatherProvider.register("smhi", { currentWeather.windSpeed = this.paramValue(weatherData, "ws"); currentWeather.windDirection = this.paramValue(weatherData, "wd"); currentWeather.weatherType = this.convertWeatherType(this.paramValue(weatherData, "Wsymb2"), currentWeather.isDayTime()); - currentWeather.feelsLikeTemp = this.calculateAT(weatherData); + currentWeather.feelsLikeTemp = this.calculateApparentTemperature(weatherData); // Determine the precipitation amount and category and update the // weatherObject with it, the valuetype to use can be configured or uses