mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 13:26:02 +00:00
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
This commit is contained in:
parent
715b9995ae
commit
84912da330
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user