mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-05 08:20:23 +00:00
31_HUEDevice.pm: perl warning fix
git-svn-id: https://svn.fhem.de/fhem/trunk@25449 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
eb04d0b790
commit
7ae94a5c05
@ -1492,7 +1492,8 @@ HUEDevice_Parse($$)
|
|||||||
if( $result->{lights} ) {
|
if( $result->{lights} ) {
|
||||||
$hash->{helper}{lights} = {map {$_=>1} @{$result->{lights}}};
|
$hash->{helper}{lights} = {map {$_=>1} @{$result->{lights}}};
|
||||||
my $lights = join( ",", sort { $a <=> $b } @{$result->{lights}} );
|
my $lights = join( ",", sort { $a <=> $b } @{$result->{lights}} );
|
||||||
if( $lights ne $hash->{lights} ) {
|
if( !defined($hash->{lights})
|
||||||
|
|| $lights ne $hash->{lights} ) {
|
||||||
$hash->{lights} = $lights;
|
$hash->{lights} = $lights;
|
||||||
|
|
||||||
my $lights = join (' ', map( { my $code = $_;
|
my $lights = join (' ', map( { my $code = $_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user