From 2bfbf505c963f8cffb80c20852ac25571348676c Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Sat, 4 Jul 2020 09:29:16 +0000 Subject: [PATCH] 73_AutoShuttersControl: 73_AutoShuttersControl: fix bug in ./lib/FHEM/Automation/ShuttersControl.pm git-svn-id: https://svn.fhem.de/fhem/trunk@22344 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 ++ fhem/lib/FHEM/Automation/ShuttersControl.pm | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 5d7dfa934..30ca524b9 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # 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 73_AutoShuttersControl: fix bug in + ./lib/FHEM/Automation/ShuttersControl.pm - feature: 76_SMAPortal: new attribute noHomeManager - bugfix: 70_BRAVIA: check available service APIs if available only - change: 49_SSCam / 49_SSCamSTRM: switch to packages, changes according PBP diff --git a/fhem/lib/FHEM/Automation/ShuttersControl.pm b/fhem/lib/FHEM/Automation/ShuttersControl.pm index e5de277dd..5dbad8bc6 100644 --- a/fhem/lib/FHEM/Automation/ShuttersControl.pm +++ b/fhem/lib/FHEM/Automation/ShuttersControl.pm @@ -4612,10 +4612,9 @@ sub _SetCmdFn { return if ( - $shutters->getASCenable eq 'off' - && $ascDev->getASCenable eq 'off' - && ( $idleDetection !~ m{^$idleDetectionValue$}xms - || $idleDetection ne 'none' ) + $shutters->getASCenable eq 'off' + || $ascDev->getASCenable eq 'off' + || $idleDetection !~ m{^$idleDetectionValue$}xms ); if ( $shutters->getStatus != $posValue ) { @@ -5040,4 +5039,7 @@ sub _CheckShuttersConditionsForShadingFn { readingsEndUpdate( $shuttersDevHash, 1 ); } + + + 1;