strip spaces from values

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1743 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mfr69bs 2012-07-20 22:45:03 +00:00
parent d61ef9743a
commit 8b379bc416

View File

@ -73,6 +73,7 @@ CommandGetState($)
$val =~ s/\s+$//g;
$val = stringToNumber($val);
$val = stripNumber($val);
$val =~ s/\s+$//g;
$v = $val if (isNumber($val) && !$v);
$v = $val if (isInteger($val) && !$v);
$v = $val if (isFloat($val) && !$v);