fix RegEx Bug

This commit is contained in:
2020-07-08 10:08:01 +02:00
parent 2bafc3d433
commit 417ecbf8fd
2 changed files with 2 additions and 2 deletions

View File

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