mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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 setReadingsVal($$$$);
|
||||||
sub setAttrList($$);
|
sub setAttrList($$);
|
||||||
sub setDevAttrList($;$);
|
sub setDevAttrList($;$);
|
||||||
|
sub setDisableNotifyFn($$);
|
||||||
sub setNotifyDev($$);
|
sub setNotifyDev($$);
|
||||||
sub toJSON($);
|
sub toJSON($);
|
||||||
sub utf8ToLatin1($);
|
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
|
sub
|
||||||
setNotifyDev($$)
|
setNotifyDev($$)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user