From 42e2592e343d3ec6c58782b717ee78591cad0b06 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sun, 4 Oct 2015 15:06:25 +0000 Subject: [PATCH] 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 --- fhem/FHEM/30_HUEBridge.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/30_HUEBridge.pm b/fhem/FHEM/30_HUEBridge.pm index 6529cb9b8..6128a3300 100644 --- a/fhem/FHEM/30_HUEBridge.pm +++ b/fhem/FHEM/30_HUEBridge.pm @@ -479,7 +479,7 @@ HUEBridge_Parse($$) $devicetypes .= ',' if( $devicetypes && scalar(@{$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} ) ) { delete( $hash->{updatestate} );