From b3d13bc82ff7424ab36a14e56c90859c697eb98d Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 6 Apr 2017 12:38:59 +0000 Subject: [PATCH] fhem.pl: eventMap attribute change was not reported by save ? (Forum #70163) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13911 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem.pl b/fhem.pl index a93406ff5..fa6376062 100755 --- a/fhem.pl +++ b/fhem.pl @@ -2704,6 +2704,9 @@ CommandAttr($$) $hash->{'.userReadings'}= \@userReadings; } + $a[0] = $sdev; + my $oVal = ($attr{$sdev} ? $attr{$sdev}{$attrName} : ""); + if($attrName eq "eventMap") { delete $hash->{".eventMapHash"}; delete $hash->{".eventMapCmd"}; @@ -2721,8 +2724,6 @@ CommandAttr($$) return "Bad regexp: $@" if($@); } - $a[0] = $sdev; - my $oVal = ($attr{$sdev} ? $attr{$sdev}{$attrName} : ""); $ret = CallFn($sdev, "AttrFn", "set", @a); if($ret) { push @rets, $ret;