2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

LightScene: possible fix for forum #27678

git-svn-id: https://svn.fhem.de/fhem/trunk@6703 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-10-07 15:27:52 +00:00
parent 506ebc5221
commit 380e902795

View File

@ -292,6 +292,7 @@ LightScene_Notify($$)
$matched = 1;
foreach my $d (sort keys %{ $hash->{SCENES}{$scene} }) {
next if( !defined($hash->{SCENES}{$scene}{$d}));
next if(!$defs{$d});
my $state = $hash->{SCENES}{$scene}{$d};
$state = $state->{state} if( ref($state) eq 'HASH' );
@ -338,7 +339,8 @@ LightScene_Save()
my $hash;
for my $d (keys %defs) {
next if($defs{$d}{TYPE} ne "LightScene");
next if( !$defs{$d}{TYPE} );
next if( $defs{$d}{TYPE} ne "LightScene" );
next if( !defined($defs{$d}{SCENES}) );
$hash->{$d} = $defs{$d}{SCENES} if( keys(%{$defs{$d}{SCENES}}) );