mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
fhem.pl: notify fix for freshly created device by justme1968 (Forum #23837)
git-svn-id: https://svn.fhem.de/fhem/trunk@5928 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5f2fa6b4aa
commit
edae3aacda
@ -1518,7 +1518,6 @@ CommandDefine($$)
|
|||||||
return "Invalid characters in name (not A-Za-z0-9.:_): $name"
|
return "Invalid characters in name (not A-Za-z0-9.:_): $name"
|
||||||
if($name !~ m/^[a-z0-9.:_]*$/i);
|
if($name !~ m/^[a-z0-9.:_]*$/i);
|
||||||
|
|
||||||
%ntfyHash = ();
|
|
||||||
my $m = $a[1];
|
my $m = $a[1];
|
||||||
if(!$modules{$m}) { # Perhaps just wrong case?
|
if(!$modules{$m}) { # Perhaps just wrong case?
|
||||||
foreach my $i (keys %modules) {
|
foreach my $i (keys %modules) {
|
||||||
@ -1563,8 +1562,8 @@ CommandDefine($$)
|
|||||||
$hash{NTFY_ORDER} = ($modules{$m}{NotifyOrderPrefix} ?
|
$hash{NTFY_ORDER} = ($modules{$m}{NotifyOrderPrefix} ?
|
||||||
$modules{$m}{NotifyOrderPrefix} : "50-") . $name;
|
$modules{$m}{NotifyOrderPrefix} : "50-") . $name;
|
||||||
}
|
}
|
||||||
|
%ntfyHash = ();
|
||||||
DoTrigger("global", "DEFINED $name", 1) if($init_done);
|
DoTrigger("global", "DEFINED $name", 1) if($init_done);
|
||||||
|
|
||||||
}
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user