mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +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
|
||||
CommandAttr($cl, "$name $da $defaultattr{$da}");
|
||||
}
|
||||
DoTrigger("global", "DEFINED $name", 1) if($init_done);
|
||||
|
||||
if($modules{$m}{NotifyFn} && !$hash{NTFY_ORDER}) {
|
||||
$hash{NTFY_ORDER} = ($modules{$m}{NotifyOrderPrefix} ?
|
||||
$modules{$m}{NotifyOrderPrefix} : "50-") . $name;
|
||||
}
|
||||
DoTrigger("global", "DEFINED $name", 1) if($init_done);
|
||||
|
||||
}
|
||||
return $ret;
|
||||
|
Loading…
Reference in New Issue
Block a user