2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

98_monitoring: white- and blacklist hebaviour changed to more accuracy; forum #126515

git-svn-id: https://svn.fhem.de/fhem/trunk@26892 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2022-12-24 08:27:11 +00:00
parent 4015baa399
commit 68eefc7026
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- change: 98_monitoring: white- and blacklist now are more accurate
- bugfix: 70_SVDRP: claen timer name, fix stateFormat overwrite
- feature: 93_DbRep: sqlCmd supports execute DB Procedures
- bugfix: 47_OBIS: Support DZG hack for power_L1/2/3

View File

@ -322,14 +322,14 @@ sub Notify {
push @blacklist, devspec2array($_)
for (split m{[\s]+}x, AttrVal($SELF, 'blacklist', ''));
return if @blacklist && grep { m{$name}x } @blacklist;
return if @blacklist && grep { m{\A${name}\z}x } @blacklist;
my @whitelist;
push @whitelist, devspec2array($_)
for (split m{[\s]+}x, AttrVal($SELF, 'whitelist', ''));
return if @whitelist && !grep { m{$name}x } @whitelist;
return if @whitelist && !grep { m{\A$name\z}x } @whitelist;
for my $event (@{$events}){
next if !$event;