mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +00:00
30_HUEBridge.pm: don't show empty devicetypes in updatestate
git-svn-id: https://svn.fhem.de/fhem/trunk@9370 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e5d32dd329
commit
42e2592e34
@ -479,7 +479,7 @@ HUEBridge_Parse($$)
|
|||||||
$devicetypes .= ',' if( $devicetypes && scalar(@{$result->{swupdate}->{devicetypes}->{lights}}) );
|
$devicetypes .= ',' if( $devicetypes && scalar(@{$result->{swupdate}->{devicetypes}->{lights}}) );
|
||||||
$devicetypes .= join( ",", @{$result->{swupdate}->{devicetypes}->{lights}} ) if( $result->{swupdate}->{devicetypes}->{lights} );
|
$devicetypes .= join( ",", @{$result->{swupdate}->{devicetypes}->{lights}} ) if( $result->{swupdate}->{devicetypes}->{lights} );
|
||||||
|
|
||||||
$hash->{updatestate} .= " [$devicetypes]";
|
$hash->{updatestate} .= " [$devicetypes]" if( $devicetypes );
|
||||||
}
|
}
|
||||||
} elsif ( defined( $hash->{swupdate} ) ) {
|
} elsif ( defined( $hash->{swupdate} ) ) {
|
||||||
delete( $hash->{updatestate} );
|
delete( $hash->{updatestate} );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user