From 63f86165ba7ef7deabb861c35fbd1ba78ea2f41e Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 18 Jun 2020 08:07:59 +0200 Subject: [PATCH] fix empty shuttername --- controls_AutoShuttersControl.txt | 2 +- lib/FHEM/Automation/ShuttersControl.pm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/controls_AutoShuttersControl.txt b/controls_AutoShuttersControl.txt index c7c2e75..82c780c 100644 --- a/controls_AutoShuttersControl.txt +++ b/controls_AutoShuttersControl.txt @@ -1,5 +1,5 @@ UPD 2020-06-11_13:43:28 97934 FHEM/73_AutoShuttersControl.pm -UPD 2020-06-09_14:07:06 186917 lib/FHEM/Automation/ShuttersControl.pm +UPD 2020-06-18_08:06:28 187063 lib/FHEM/Automation/ShuttersControl.pm UPD 2020-06-09_13:21:45 2657 lib/FHEM/Automation/ShuttersControl/Dev.pm UPD 2020-06-09_13:21:45 2493 lib/FHEM/Automation/ShuttersControl/Roommate.pm UPD 2020-06-09_13:21:45 29833 lib/FHEM/Automation/ShuttersControl/Shutters.pm diff --git a/lib/FHEM/Automation/ShuttersControl.pm b/lib/FHEM/Automation/ShuttersControl.pm index 6b3a031..f3c99e3 100644 --- a/lib/FHEM/Automation/ShuttersControl.pm +++ b/lib/FHEM/Automation/ShuttersControl.pm @@ -3034,7 +3034,8 @@ sub ShuttersCommandSet { ## Sub welche die InternalTimer nach entsprechenden Sunset oder Sunrise zusammen stellt sub CreateSunRiseSetShuttersTimer { my $hash = shift; - my $shuttersDev = shift; + my $shuttersDev = shift // return Log3( $hash->{NAME}, 1, +"AutoShuttersControl ($hash->{NAME}) - Error in function CreateSunRiseSetShuttersTimer. No shuttersDev given"); my $name = $hash->{NAME}; my $shuttersDevHash = $defs{$shuttersDev};