From b0eb51d825218d8155ae31f82fc7c993067a1432 Mon Sep 17 00:00:00 2001 From: zap <> Date: Wed, 29 Jan 2020 16:20:24 +0000 Subject: [PATCH] HMCCU: Fixed return from sub bug git-svn-id: https://svn.fhem.de/fhem/trunk@21072 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/88_HMCCU.pm | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 23411d10f..57cc996a4 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # 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: 88_HMCCU: Fixed next/return bug - feature: 93_DbRep: new option "deleteOther" for minValue/maxValue available - feature: 98_weekprofile: new command get associations - feature: 6.0 released diff --git a/fhem/FHEM/88_HMCCU.pm b/fhem/FHEM/88_HMCCU.pm index ca620960c..b56cb6fde 100755 --- a/fhem/FHEM/88_HMCCU.pm +++ b/fhem/FHEM/88_HMCCU.pm @@ -4,7 +4,7 @@ # # $Id$ # -# Version 4.3.020 +# Version 4.3.021 # # Module for communication between FHEM and Homematic CCU2/3. # @@ -52,7 +52,7 @@ my %HMCCU_CUST_CHN_DEFAULTS; my %HMCCU_CUST_DEV_DEFAULTS; # HMCCU version -my $HMCCU_VERSION = '4.3.020'; +my $HMCCU_VERSION = '4.3.021'; # Constants and default values my $HMCCU_MAX_IOERRORS = 100; @@ -3383,7 +3383,7 @@ sub HMCCU_UpdateSingleDevice ($$$$) # Check if update of device allowed my $disable = AttrVal ($cltname, 'disable', 0); my $update = AttrVal ($cltname, 'ccureadings', 1); - next if ($update == 0 || $disable == 1 || $clthash->{ccudevstate} ne 'active'); + return 0 if ($update == 0 || $disable == 1 || $clthash->{ccudevstate} ne 'active'); # Get device parameters and attributes my $ccuflags = HMCCU_GetFlags ($ccuname);