mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 02:44:53 +00:00
fhem.pl: add setNotifyDev (Forum #125381)
git-svn-id: https://svn.fhem.de/fhem/trunk@25541 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
292c8fd2bb
commit
be897603ae
14
fhem/fhem.pl
14
fhem/fhem.pl
@ -155,6 +155,7 @@ sub setGlobalAttrBeforeFork($);
|
||||
sub setReadingsVal($$$$);
|
||||
sub setAttrList($$);
|
||||
sub setDevAttrList($;$);
|
||||
sub setNotifyDev($$);
|
||||
sub toJSON($);
|
||||
sub utf8ToLatin1($);
|
||||
|
||||
@ -5604,6 +5605,19 @@ notifyRegexpChanged($$;$)
|
||||
}
|
||||
}
|
||||
|
||||
sub
|
||||
setNotifyDev($$)
|
||||
{
|
||||
my ($hash, $ntfydev) = @_;
|
||||
|
||||
if($ntfydev) {
|
||||
$hash->{NOTIFYDEV} = $ntfydev;
|
||||
} else {
|
||||
delete($hash->{NOTIFYDEV});
|
||||
}
|
||||
%ntfyHash = ();
|
||||
}
|
||||
|
||||
sub
|
||||
configDBUsed()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user