mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
30_HUEBridge.pm: fix crash due to missing capabilities data from api
git-svn-id: https://svn.fhem.de/fhem/trunk@25953 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ad6d21be26
commit
3a87cf6bbc
@ -1553,7 +1553,7 @@ HUEBridge_Get($@)
|
||||
$ret .= sprintf( "%2i: %-20s %-15s %-20s", $key, $result->{$key}{name}, $fhem_name, $result->{$key}{type} );
|
||||
$ret .= sprintf( "\n%-56s %s", '', encode_json($result->{$key}{state}) ) if( $arg && $arg eq 'detail' );
|
||||
$ret .= sprintf( "\n%-56s %s", '', encode_json($result->{$key}{config}) ) if( $arg && $arg eq 'detail' );
|
||||
$ret .= sprintf( "\n%-56s %s", '', encode_json($result->{$key}{capabilities}) ) if( $arg && $arg eq 'detail' );
|
||||
$ret .= sprintf( "\n%-56s %s", '', encode_json($result->{$key}{capabilities}) ) if( $arg && $arg eq 'detail' && defined($result->{$key}{capabilities}) );
|
||||
$ret .= "\n";
|
||||
}
|
||||
if( $arg && $arg eq 'detail' ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user