mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
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
This commit is contained in:
parent
6ba99e55bc
commit
b3d13bc82f
5
fhem.pl
5
fhem.pl
@ -2704,6 +2704,9 @@ CommandAttr($$)
|
|||||||
$hash->{'.userReadings'}= \@userReadings;
|
$hash->{'.userReadings'}= \@userReadings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$a[0] = $sdev;
|
||||||
|
my $oVal = ($attr{$sdev} ? $attr{$sdev}{$attrName} : "");
|
||||||
|
|
||||||
if($attrName eq "eventMap") {
|
if($attrName eq "eventMap") {
|
||||||
delete $hash->{".eventMapHash"};
|
delete $hash->{".eventMapHash"};
|
||||||
delete $hash->{".eventMapCmd"};
|
delete $hash->{".eventMapCmd"};
|
||||||
@ -2721,8 +2724,6 @@ CommandAttr($$)
|
|||||||
return "Bad regexp: $@" if($@);
|
return "Bad regexp: $@" if($@);
|
||||||
}
|
}
|
||||||
|
|
||||||
$a[0] = $sdev;
|
|
||||||
my $oVal = ($attr{$sdev} ? $attr{$sdev}{$attrName} : "");
|
|
||||||
$ret = CallFn($sdev, "AttrFn", "set", @a);
|
$ret = CallFn($sdev, "AttrFn", "set", @a);
|
||||||
if($ret) {
|
if($ret) {
|
||||||
push @rets, $ret;
|
push @rets, $ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user