mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
31_HUEDevice.pm: don't fill empty internals.
git-svn-id: https://svn.fhem.de/fhem/trunk@9464 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bc73d61c91
commit
2eec9fb334
@ -856,9 +856,9 @@ HUEDevice_Parse($$)
|
||||
Log3 $name, 4, "parse status message for $name";
|
||||
#Log3 $name, 5, Dumper $result;
|
||||
|
||||
$hash->{name} = $result->{'name'};
|
||||
$hash->{type} = $result->{'type'};
|
||||
$hash->{uniqueid} = $result->{'uniqueid'};
|
||||
$hash->{name} = $result->{'name'} if( defined($hash->{name}) );
|
||||
$hash->{type} = $result->{'type'} if( defined($hash->{type}) );
|
||||
$hash->{uniqueid} = $result->{'uniqueid'} if( defined($hash->{uniqueid}) );
|
||||
|
||||
if( $hash->{helper}->{devtype} eq 'G' ) {
|
||||
$hash->{STATE} = 'Initialized';
|
||||
@ -873,10 +873,10 @@ HUEDevice_Parse($$)
|
||||
return undef;
|
||||
}
|
||||
|
||||
$hash->{modelid} = $result->{modelid};
|
||||
$hash->{manufacturername} = $result->{manufacturername};
|
||||
$hash->{luminaireuniqueid} = $result->{luminaireuniqueid};
|
||||
$hash->{swversion} = $result->{swversion};
|
||||
$hash->{modelid} = $result->{modelid} if( defined($result->{modelid}) );
|
||||
$hash->{manufacturername} = $result->{manufacturername} if( defined($hash->{manufacturername}) );
|
||||
$hash->{luminaireuniqueid} = $result->{luminaireuniqueid} if( defined($hash->{luminaireuniqueid}) );
|
||||
$hash->{swversion} = $result->{swversion} if( defined($hash->{swversion}) );
|
||||
|
||||
if( $hash->{helper}->{devtype} eq 'S' ) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user