10_RHASSPY: fix numeric handling for ZWave type blinds in SetNumeric

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@26075 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2022-05-21 12:02:51 +00:00
parent 8ea2b8a59d
commit 1d2016299c

View File

@ -4730,6 +4730,8 @@ sub handleIntentSetNumeric {
$oldVal = $tokens[$part] if @tokens >= $part;
}
$oldVal = $oldVal =~ m{(-?\d+(\.\d+)?)}x ? $1 : $oldVal;
# Neuen Wert bestimmen
my $newVal;
my $ispct = defined $unit && $unit eq 'percent' ? 1 : 0;