From c24cda9198c7b918eea62ecd6e124d651fd846b9 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 27 Feb 2014 12:28:41 +0000 Subject: [PATCH] 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 --- fhem/fhem.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 8f2ee7b8c..452a29c08 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -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;