diff --git a/FHEM/98_openweathermap.pm b/FHEM/98_openweathermap.pm index d2a6bb8a4..c044ad63a 100644 --- a/FHEM/98_openweathermap.pm +++ b/FHEM/98_openweathermap.pm @@ -334,7 +334,9 @@ UpdateReadings($$$){ $jsonWeather = $json->decode($response); } catch { Log $loglevel, "openweather $name error: JSPON decode"; - return; + return undef; + } finally { + return undef; }; readingsBeginUpdate($hash);