mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
HMtemplate:bug prevent numbers with multiple decimal places as number - resolved
git-svn-id: https://svn.fhem.de/fhem/trunk@24835 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e36a273e21
commit
bc2f2be6c3
@ -116,7 +116,7 @@ sub HMtemplate_Attr(@) {#######################################################
|
||||
elsif ($calc eq "fltCvT60"){ my $calcVal = CUL_HM_CvTflt60(CUL_HM_fltCvT60($attrVal)); return "Value $attrVal not possible. Use $calcVal" if ($attrVal != $calcVal); }
|
||||
elsif ($calc eq "min2time"){ my $calcVal = CUL_HM_min2time(CUL_HM_time2min($attrVal)); return "Value $attrVal not possible. Use $calcVal" if ($attrVal != $calcVal); }
|
||||
else{
|
||||
return "value $attrVal not numeric for $rN" if ($attrVal !~/^\d+?\.?\d?$/);
|
||||
return "value $attrVal not numeric for $rN" if ($attrVal !~/^\d+?\.?\d*$/);
|
||||
return "value $attrVal out of range for $rN :"
|
||||
.$culHmRegDef->{$ty.$rN}{min} ."..."
|
||||
.$culHmRegDef->{$ty.$rN}{max} if ($culHmRegDef->{$ty.$rN}{min} > $attrVal
|
||||
|
Loading…
Reference in New Issue
Block a user