mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
10_RHASSPY: fix relative numeric handling for SetNumericGroup
git-svn-id: https://svn.fhem.de/fhem/trunk@26076 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a35ed62b9c
commit
ce43c4a073
@ -4607,8 +4607,6 @@ sub handleIntentSetNumericGroup {
|
||||
Log3($hash, 5, 'sorted devices list is: ' . join q{ }, @devlist);
|
||||
return respond( $hash, $data, getResponse( $hash, 'NoDeviceFound' ) ) if !keys %{$devices};
|
||||
|
||||
my $value = $data->{Value};
|
||||
|
||||
my $updatedList;
|
||||
my $init_delay = 0;
|
||||
my $delaysum = 0;
|
||||
@ -4773,10 +4771,12 @@ sub handleIntentSetNumeric {
|
||||
# limit to min/max (if set)
|
||||
$newVal = max( $minVal, $newVal ) if defined $minVal;
|
||||
$newVal = min( $maxVal, $newVal ) if defined $maxVal;
|
||||
$data->{Value} //= $newVal;
|
||||
$data->{Type} //= $type;
|
||||
delete $data->{Change} if defined $data->{Change} && $data->{Change} ne 'cmdStop';
|
||||
|
||||
|
||||
if ( !defined $data->{'.inBulk'} ) {
|
||||
$data->{Value} //= $newVal;
|
||||
$data->{Type} //= $type;
|
||||
delete $data->{Change} if defined $data->{Change} && $data->{Change} ne 'cmdStop';
|
||||
}
|
||||
#check if confirmation is required
|
||||
return $hash->{NAME} if !defined $data->{'.inBulk'} && !$data->{Confirmation} && getNeedsConfirmation( $hash, $data, 'SetNumeric', $device );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user