From 068d292e3b2714c119deac7d8f125cbb72198cd0 Mon Sep 17 00:00:00 2001 From: veeck Date: Thu, 12 Oct 2023 10:21:04 +0200 Subject: [PATCH] Fix API version in locationforecast Fixes #3227 --- modules/default/weather/providers/yr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default/weather/providers/yr.js b/modules/default/weather/providers/yr.js index e296bbdc92..b34d9575c4 100644 --- a/modules/default/weather/providers/yr.js +++ b/modules/default/weather/providers/yr.js @@ -199,7 +199,7 @@ WeatherProvider.register("yr", { lon = `${lonParts[0]}.${lonParts[1].substring(0, 4)}`; } - return `${this.config.apiBase}/locationforecast/2.0/complete?&altitude=${altitude}&lat=${lat}&lon=${lon}`; + return `${this.config.apiBase}/locationforecast/3.0/complete?&altitude=${altitude}&lat=${lat}&lon=${lon}`; }, cacheWeatherData(weatherData) {