fhem.pl: delete CHANGED for do_not_notify (Forum #74770)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14834 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-08-02 07:20:36 +00:00
parent ef6761d458
commit 771cbc52f3

View File

@ -3318,7 +3318,12 @@ DoTrigger($$@)
}
my $max = int(@{$hash->{CHANGED}});
return "" if(defined($attr{$dev}) && defined($attr{$dev}{do_not_notify}));
if(AttrVal($dev, "do_not_notify", 0)) {
delete($hash->{CHANGED});
delete($hash->{CHANGETIME});
delete($hash->{CHANGEDWITHSTATE});
return "";
}
my $now = TimeNow();
################