fix(weather/smhi) Correctly reference apparent temp method (#2931)

This PR addresses [this
comment](48756e8774 (commitcomment-85772193)),
which points out an issue with #2902.

Looks like the apparent temp calculation method was incorrectly
referenced 😅
This commit is contained in:
Malte Hallström
2022-10-04 11:07:40 +02:00
committed by GitHub
parent f04d578704
commit 8212d30c4c
2 changed files with 3 additions and 1 deletions

View File

@@ -19,6 +19,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

View File

@@ -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