31_LightScene.pm: ignore events untill $init_done (see: https://forum.fhem.de/index.php/topic,97954.0.html)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18765 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2019-03-01 09:13:39 +00:00
parent dbf8412773
commit 5e692ea610

View File

@ -212,7 +212,8 @@ LightScene_Notify($$)
LightScene_Save();
}
return if($dev->{TYPE} eq $hash->{TYPE});
return if( !$init_done );
return if( $dev->{TYPE} eq $hash->{TYPE} );
my $max = int(@{$dev->{CHANGED}});
for (my $i = 0; $i < $max; $i++) {