fhem.pl: fix duplicate events by NOTIFYDEV (Forum #57971)
git-svn-id: https://svn.fhem.de/fhem/trunk@12192 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -4383,7 +4383,8 @@ createNtfyHash()
|
||||
foreach my $d (@ntfyList) {
|
||||
if($defs{$d}{NOTIFYDEV}) {
|
||||
foreach my $nd (split(",",$defs{$d}{NOTIFYDEV})) {
|
||||
push @{$ntfyHash{$nd}}, $d;
|
||||
my $arr = $ntfyHash{$nd};
|
||||
push @{$arr}, $d if(!grep /^$d$/, @{$arr});
|
||||
}
|
||||
} else {
|
||||
foreach my $nd (keys %ntfyHash) {
|
||||
|
||||
Reference in New Issue
Block a user