From 05479ffdd6c0d8150759654eecad1ed3faeccdf8 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Fri, 3 Jul 2020 13:36:59 +0200 Subject: [PATCH] =?UTF-8?q?fix=20Global=20symbol=20"$hash"=20requires=20ex?= =?UTF-8?q?plicit=20package=20name=20=09ge=C3=A4ndert:=20=20=20=20=20=20?= =?UTF-8?q?=20lib/FHEM/Automation/ShuttersControl.pm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controls_AutoShuttersControl.txt | 2 +- lib/FHEM/Automation/ShuttersControl.pm | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/controls_AutoShuttersControl.txt b/controls_AutoShuttersControl.txt index 59a80e3..6b20524 100644 --- a/controls_AutoShuttersControl.txt +++ b/controls_AutoShuttersControl.txt @@ -1,5 +1,5 @@ UPD 2020-07-03_13:18:05 97041 FHEM/73_AutoShuttersControl.pm -UPD 2020-07-03_13:26:42 177740 lib/FHEM/Automation/ShuttersControl.pm +UPD 2020-07-03_13:36:46 177776 lib/FHEM/Automation/ShuttersControl.pm UPD 2020-06-22_09:41:40 2657 lib/FHEM/Automation/ShuttersControl/Dev.pm UPD 2020-07-03_11:29:10 2496 lib/FHEM/Automation/ShuttersControl/Roommate.pm UPD 2020-07-03_11:29:10 30710 lib/FHEM/Automation/ShuttersControl/Shutters.pm diff --git a/lib/FHEM/Automation/ShuttersControl.pm b/lib/FHEM/Automation/ShuttersControl.pm index 1ae73f2..78e68af 100644 --- a/lib/FHEM/Automation/ShuttersControl.pm +++ b/lib/FHEM/Automation/ShuttersControl.pm @@ -392,7 +392,7 @@ sub Delete { my $hash = shift; my $name = shift; - RemoveShuttersTimer(); + RemoveShuttersTimer($hash); return; } @@ -400,7 +400,7 @@ sub Delete { sub Shutdown { my $hash = shift; - RemoveShuttersTimer(); + RemoveShuttersTimer($hash); return; } @@ -4736,6 +4736,8 @@ sub _CheckShuttersConditionsForShadingFn { } sub RemoveShuttersTimer { + my $hash = shift; + for my $shuttersDev ( @{ $hash->{helper}{shuttersList} } ) { $shutters->setShuttersDev($shuttersDev);