From a2756a37433d76b13b350434b9d2974f3b16664f Mon Sep 17 00:00:00 2001 From: PtrO Date: Tue, 19 Mar 2019 23:30:11 +0100 Subject: [PATCH] [Weather] #5837 Fix OpenWeather API key failure Why: * OpenWeather discontinued the FreePlan for FORECAST which now generates an API-key error as forecast is implicitly part of binding. This Fix will remove the FORECAST call and option by simply returning nulll for the FORECASY url. This change addresses the need by: * return null in the FORECAST call Signed-off-by: PtrO --- .../weather/internal/provider/OpenWeatherMapProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/binding/org.openhab.binding.weather/src/main/java/org/openhab/binding/weather/internal/provider/OpenWeatherMapProvider.java b/bundles/binding/org.openhab.binding.weather/src/main/java/org/openhab/binding/weather/internal/provider/OpenWeatherMapProvider.java index 0377f093a9d..0acc122e88f 100644 --- a/bundles/binding/org.openhab.binding.weather/src/main/java/org/openhab/binding/weather/internal/provider/OpenWeatherMapProvider.java +++ b/bundles/binding/org.openhab.binding.weather/src/main/java/org/openhab/binding/weather/internal/provider/OpenWeatherMapProvider.java @@ -46,6 +46,6 @@ protected String getWeatherUrl() { */ @Override protected String getForecastUrl() { - return FORECAST; + return null; } }