fix return bug in condition

This commit is contained in:
2020-07-08 10:16:33 +02:00
parent 2850f6394f
commit b8488ebdc2
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ sub _getRainSensor {
$self->{ASC_rainSensor}->{triggermax} = ( $max ne 'none' ? $max : 1000 );
$self->{ASC_rainSensor}->{triggerhyst} = (
$max =~ m{\A[A-Za-z]+\z}xms
? $self->{ASC_rainSensor}->{triggermax}
? 1000
: (
$hyst ne 'none'
? $max - $hyst