mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 16:46:35 +00:00
strip spaces from values
git-svn-id: https://svn.fhem.de/fhem/trunk@1743 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9c57ad409a
commit
d416976100
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user