mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 18:56:03 +00:00
notify: fix matching of eventMap transformed events (forum #24332)
git-svn-id: https://svn.fhem.de/fhem/trunk@6081 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dc2b0f0314
commit
412d17e17e
@ -67,7 +67,9 @@ notify_Exec($$)
|
|||||||
$s = "" if(!defined($s));
|
$s = "" if(!defined($s));
|
||||||
my $found = ($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/);
|
my $found = ($n =~ m/^$re$/ || "$n:$s" =~ m/^$re$/);
|
||||||
if(!$found && AttrVal($n, "eventMap", undef)) {
|
if(!$found && AttrVal($n, "eventMap", undef)) {
|
||||||
(undef, $s) = ReplaceEventMap($n, [$n,$s], 0);
|
my @res = ReplaceEventMap($n, [$n,$s], 0);
|
||||||
|
shift @res;
|
||||||
|
$s = join(" ", @res);
|
||||||
$found = ("$n:$s" =~ m/^$re$/);
|
$found = ("$n:$s" =~ m/^$re$/);
|
||||||
}
|
}
|
||||||
if($found) {
|
if($found) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user