From 84912da330e23308c6996841c07f4aa6eeecd98f Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Sat, 2 May 2020 08:59:46 +0000 Subject: [PATCH] 31_HUEDevice.pm: fixed warnung for devices with no commands git-svn-id: https://svn.fhem.de/fhem/trunk@21837 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/31_HUEDevice.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/31_HUEDevice.pm b/fhem/FHEM/31_HUEDevice.pm index 20d9ead73..8fad3f559 100644 --- a/fhem/FHEM/31_HUEDevice.pm +++ b/fhem/FHEM/31_HUEDevice.pm @@ -1253,10 +1253,13 @@ HUEDevice_Get($@) $list = ' devStateIcon:noArg' if( $subtype eq 'blind' ); } - if( $hash->{IODev} && $hash->{IODev}{helper}{apiversion} && $hash->{IODev}{helper}{apiversion} >= (1<<16) + (26<<8) ) { + if( !$hash->{helper}->{devtype} + && $hash->{IODev} && $hash->{IODev}{helper}{apiversion} && $hash->{IODev}{helper}{apiversion} >= (1<<16) + (26<<8) ) { $list .= " startup:noArg"; } + return "Unknown argument $cmd" if( !$list ); + return "Unknown argument $cmd, choose one of $list"; }