From 29ac6a9673c8c4c9ca627b382a1d60bc78a3c0da Mon Sep 17 00:00:00 2001 From: martinp876 <> Date: Tue, 16 Oct 2012 21:41:15 +0000 Subject: [PATCH] correct get param git-svn-id: https://svn.fhem.de/fhem/trunk@1983 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_CUL_HM.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/10_CUL_HM.pm b/fhem/FHEM/10_CUL_HM.pm index c542e21a9..075f0d039 100755 --- a/fhem/FHEM/10_CUL_HM.pm +++ b/fhem/FHEM/10_CUL_HM.pm @@ -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"; }