From f3ae65d9a755725f0bf1af94bd386767790ded47 Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Sun, 8 Jan 2023 21:07:08 +0000 Subject: [PATCH] 59_Weather: bugfix function WeatherAsHtmlD not working git-svn-id: https://svn.fhem.de/fhem/trunk@27009 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/59_Weather.pm | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index fd6479df3..7a1e32c4a 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 59_Weather: bugfix function WeatherAsHtmlD not working - bugfix: 98_weekprofile.pm: internal tempMap list if attr tempMap changed - feature: 59_Weather: fix multiple issues in API modules - feature: 59_Weather: support for new openweathermap mod onecall diff --git a/fhem/FHEM/59_Weather.pm b/fhem/FHEM/59_Weather.pm index 97a276c6c..440d2cb6f 100755 --- a/fhem/FHEM/59_Weather.pm +++ b/fhem/FHEM/59_Weather.pm @@ -1078,15 +1078,16 @@ sub WeatherAsHtmlD { my $op2 = shift; my ( $f, $items ) = Weather_CheckOptions( $d, $op1, $op2 ); + my $ret; if ($FW_ss) { - WeatherAsHtmlV( $d, $f, $items ); + $ret = WeatherAsHtmlV( $d, $f, $items ); } else { - WeatherAsHtmlH( $d, $f, $items ); + $ret = WeatherAsHtmlH( $d, $f, $items ); } - return; + return $ret; } sub Weather_CheckOptions { @@ -1606,7 +1607,7 @@ sub Weather_CheckOptions { ], "release_status": "stable", "license": "GPL_2", - "version": "v2.2.20", + "version": "v2.2.21", "author": [ "Marko Oldenburg " ],