PRESENCE: don't overwrite STATE in mode "event" (Forum: #69423)

git-svn-id: https://svn.fhem.de/fhem/trunk@15302 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2017-10-22 11:32:19 +00:00
parent 926278b088
commit 523830ad89

View File

@@ -183,7 +183,7 @@ PRESENCE_Define($$)
$hash->{MODE} = "event";
$hash->{EVENT_ABSENT} = $a[3];
$hash->{EVENT_PRESENT} = $a[4];
$hash->{STATE} = "Initialized";
$hash->{STATE} = "Initialized" if($init_done);
InternalTimer(gettimeofday(), "PRESENCE_setNotfiyDev", $hash);
}