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:
parent
6be6c942ce
commit
26fc74ea30
15
fhem/fhem.pl
15
fhem/fhem.pl
@ -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($$)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user