From 150581147f7acd7ce7eb48c86dce8115f2f00f72 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Mon, 2 Sep 2019 13:43:53 +0200 Subject: [PATCH] Bugfix forum #971394 --- 59_Weather.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/59_Weather.pm b/59_Weather.pm index df3c064..642af58 100755 --- a/59_Weather.pm +++ b/59_Weather.pm @@ -1,4 +1,4 @@ -# $Id: 59_Weather.pm 16644 2018-04-22 08:07:35Z neubert $ +# $Id$ ############################################################################## # # 59_Weather.pm @@ -310,6 +310,10 @@ sub Weather_ReturnWithError($$) { sub Weather_RetrieveCallbackFn($) { my $name = shift; + + return undef + unless ( IsDevice($name) ); + my $hash = $defs{$name}; my $responseRef = $hash->{fhem}->{api}->getWeather;