2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 07:16:03 +00:00

10_ZWave.pm: fix config param check (Forum #32819)

git-svn-id: https://svn.fhem.de/fhem/trunk@7741 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-01-27 07:09:38 +00:00
parent 8444195e86
commit dd37554335

View File

@ -811,7 +811,7 @@ ZWave_configCheckParam($$$$@)
if($t eq "list") { if($t eq "list") {
my $v = $h->{Item}{$arg[0]}; my $v = $h->{Item}{$arg[0]};
return ("Unknown parameter $arg[0] for $cmd, use one of ". return ("Unknown parameter $arg[0] for $cmd, use one of ".
join(",", keys %{$h->{Item}}), "") if(!$v); join(",", keys %{$h->{Item}}), "") if(!defined($v));
return ("", sprintf("04%02x01%02x", $h->{index}, $v)); return ("", sprintf("04%02x01%02x", $h->{index}, $v));
} }
if($t eq "button") { if($t eq "button") {