mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
31_HUEDevice.pm: deCONZ compatibility fix
git-svn-id: https://svn.fhem.de/fhem/trunk@11440 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d48b6f30ae
commit
dacd1cafa2
@ -989,7 +989,7 @@ HUEDevice_Parse($$)
|
|||||||
$hash->{STATE} = 'Initialized';
|
$hash->{STATE} = 'Initialized';
|
||||||
$hash->{lights} = join( ",", @{$result->{lights}} ) if( $result->{lights} );
|
$hash->{lights} = join( ",", @{$result->{lights}} ) if( $result->{lights} );
|
||||||
|
|
||||||
if( $result->{state} ) {
|
if( ref($result->{state}) eq 'HASH' ) {
|
||||||
my $all_on = $result->{state}{all_on};
|
my $all_on = $result->{state}{all_on};
|
||||||
my $any_on = $result->{state}{any_on};
|
my $any_on = $result->{state}{any_on};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user