mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
correct get param
git-svn-id: https://svn.fhem.de/fhem/trunk@1983 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
462f6001f0
commit
29ac6a9673
@ -1238,11 +1238,11 @@ CUL_HM_Get($@)
|
||||
if($cmd eq "param") { ######################################################
|
||||
my $val;
|
||||
$val = AttrVal($name, $a[2], "");
|
||||
$val = $hash->{READINGS}{$a[2]}{VAL} if (!defined($val) && $hash->{READINGS}{$a[2]});
|
||||
$val = AttrVal($devName, $a[2], "") if (!defined($val));
|
||||
$val = $devHash->{READINGS}{$a[2]}{VAL} if (!defined($val) && $devHash->{READINGS}{$a[2]});
|
||||
$val = $hash->{helper}{$a[2]} if (!defined($val));
|
||||
$val = $devHash->{helper}{$a[2]} if (!defined($val));
|
||||
$val = $hash->{READINGS}{$a[2]}{VAL} if (!$val && $hash->{READINGS}{$a[2]});
|
||||
$val = AttrVal($devName, $a[2], "") if (!$val);
|
||||
$val = $devHash->{READINGS}{$a[2]}{VAL} if (!$val && $devHash->{READINGS}{$a[2]});
|
||||
$val = $hash->{helper}{$a[2]} if (!$val);
|
||||
$val = $devHash->{helper}{$a[2]} if (!$val);
|
||||
|
||||
return (defined ($val))?$val:"undefined";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user