2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-17 11:26:03 +00:00

fhem.pl: add setDisableNotifyFn (Forum #125381)

git-svn-id: https://svn.fhem.de/fhem/trunk@25563 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-01-26 10:04:13 +00:00
parent 6be6c942ce
commit 26fc74ea30

View File

@ -155,6 +155,7 @@ sub setGlobalAttrBeforeFork($);
sub setReadingsVal($$$$);
sub setAttrList($$);
sub setDevAttrList($;$);
sub setDisableNotifyFn($$);
sub setNotifyDev($$);
sub toJSON($);
sub utf8ToLatin1($);
@ -5606,6 +5607,20 @@ notifyRegexpChanged($$;$)
}
}
sub
setDisableNotifyFn($$)
{
my ($hash, $doit) = @_;
if($doit) {
delete($hash->{NOTIFYDEV});
$hash->{disableNotifyFn} = 1
} else {
delete($hash->{disableNotifyFn});
}
%ntfyHash = ();
}
sub
setNotifyDev($$)
{