mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 17:26:34 +00:00
fhem.pl: eventMap attribute change was not reported by save ? (Forum #70163)
git-svn-id: https://svn.fhem.de/fhem/trunk@13911 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9d9cb0481f
commit
07afb9a5b8
@ -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