mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
fhem.pl: fix notify bug: new notify was called only after additional define or
FHEM restart git-svn-id: https://svn.fhem.de/fhem/trunk@5063 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
71419b90c2
commit
c24cda9198
@ -1456,12 +1456,11 @@ CommandDefine($$)
|
|||||||
foreach my $da (sort keys (%defaultattr)) { # Default attributes
|
foreach my $da (sort keys (%defaultattr)) { # Default attributes
|
||||||
CommandAttr($cl, "$name $da $defaultattr{$da}");
|
CommandAttr($cl, "$name $da $defaultattr{$da}");
|
||||||
}
|
}
|
||||||
DoTrigger("global", "DEFINED $name", 1) if($init_done);
|
|
||||||
|
|
||||||
if($modules{$m}{NotifyFn} && !$hash{NTFY_ORDER}) {
|
if($modules{$m}{NotifyFn} && !$hash{NTFY_ORDER}) {
|
||||||
$hash{NTFY_ORDER} = ($modules{$m}{NotifyOrderPrefix} ?
|
$hash{NTFY_ORDER} = ($modules{$m}{NotifyOrderPrefix} ?
|
||||||
$modules{$m}{NotifyOrderPrefix} : "50-") . $name;
|
$modules{$m}{NotifyOrderPrefix} : "50-") . $name;
|
||||||
}
|
}
|
||||||
|
DoTrigger("global", "DEFINED $name", 1) if($init_done);
|
||||||
|
|
||||||
}
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user