31_HUEDevice.pm: set model attribute for sensors
git-svn-id: https://svn.fhem.de/fhem/trunk@21351 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1496,6 +1496,8 @@ HUEDevice_Parse($$)
|
||||
}
|
||||
|
||||
$hash->{modelid} = $result->{modelid} if( defined($result->{modelid}) );
|
||||
$attr{$name}{model} = $result->{modelid} if( !defined($attr{$name}{model}) && $result->{modelid} );
|
||||
|
||||
$hash->{productid} = $result->{productid} if( defined($result->{productid}) );
|
||||
$hash->{swversion} = $result->{swversion} if( defined($result->{swversion}) );
|
||||
$hash->{swconfigid} = $result->{swconfigid} if( defined($result->{swconfigid}) );
|
||||
@@ -1654,8 +1656,6 @@ HUEDevice_Parse($$)
|
||||
}
|
||||
|
||||
|
||||
$attr{$name}{model} = $result->{modelid} if( !defined($attr{$name}{model}) && $result->{modelid} );
|
||||
|
||||
if( !defined($attr{$name}{subType}) ) {
|
||||
if( defined($attr{$name}{model}) ) {
|
||||
if( defined($hueModels{$attr{$name}{model}}{subType}) ) {
|
||||
|
||||
Reference in New Issue
Block a user