From a514bd8aa19ca93ec5ca84cda48b3a836104e77e Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Thu, 2 Feb 2023 22:05:28 +0000 Subject: [PATCH] 59_Weather: fix Undefined subroutine git-svn-id: https://svn.fhem.de/fhem/trunk@27169 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 5 +++-- fhem/lib/FHEM/Core/Weather.pm | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 74f695f53..2f25fbd7e 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,8 +1,9 @@ # 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. - - feature: 74_AutomowerConnect: rework detail view + - bugfix: 59_Weather: fix Undefined subroutine + - feature: 74_AutomowerConnect: rework detail view getter for MowerData and StatisticsData - - feature: 75_AutomowerConnectDevice: same as AutomowerConnect + - feature: 75_AutomowerConnectDevice: same as AutomowerConnect - feature: 93_DbLog: new Get menu for a selection of getters, send Log data back to parent process, Forum:#131790 - change: 93_DbRep: ignore non-numeric values in diffValue and output diff --git a/fhem/lib/FHEM/Core/Weather.pm b/fhem/lib/FHEM/Core/Weather.pm index b65d22e75..d48192997 100644 --- a/fhem/lib/FHEM/Core/Weather.pm +++ b/fhem/lib/FHEM/Core/Weather.pm @@ -317,7 +317,7 @@ sub _ReturnWithError { return; } -sub _DeleteForecastreadings { +sub DeleteForecastreadings { return 0 unless ( __PACKAGE__ eq caller(0) ); my $hash = shift;