fix RegEx Bug
This commit is contained in:
		| @@ -5,7 +5,7 @@ UPD 2020-07-07_14:49:19 2496 lib/FHEM/Automation/ShuttersControl/Roommate.pm | ||||
| UPD 2020-07-07_14:49:19 30710 lib/FHEM/Automation/ShuttersControl/Shutters.pm | ||||
| UPD 2020-07-07_14:49:19 17908 lib/FHEM/Automation/ShuttersControl/Shading.pm | ||||
| UPD 2020-06-22_09:41:40 2175 lib/FHEM/Automation/ShuttersControl/Window.pm | ||||
| UPD 2020-07-08_10:16:12 11539 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm | ||||
| UPD 2020-07-08_10:27:47 11567 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm | ||||
| UPD 2020-07-03_11:29:10 7251 lib/FHEM/Automation/ShuttersControl/Dev/Readings.pm | ||||
| UPD 2020-07-03_11:29:10 52390 lib/FHEM/Automation/ShuttersControl/Shutters/Attr.pm | ||||
| UPD 2020-06-22_09:41:40 2903 lib/FHEM/Automation/ShuttersControl/Shutters/Readings.pm | ||||
|   | ||||
| @@ -265,16 +265,18 @@ sub _getRainSensor { | ||||
|     $self->{ASC_rainSensor}->{device} = $device; | ||||
|     $self->{ASC_rainSensor}->{reading} = | ||||
|       ( $reading ne 'none' ? $reading : 'state' ); | ||||
|     $self->{ASC_rainSensor}->{triggermax} = ( $max ne 'none' ? $max : 1000 ); | ||||
|     $self->{ASC_rainSensor}->{triggermax} = ( | ||||
|          (   $max ne 'none' | ||||
|           && $max =~ m{\A(-?\d+(\.\d+)?)\z}xms ) | ||||
|         ? $max | ||||
|         : 1000 ); | ||||
|  | ||||
|     $self->{ASC_rainSensor}->{triggerhyst} = ( | ||||
|           $max =~ m{\A[A-Za-z]+\z}xms | ||||
|         ? 1000 | ||||
|         : ( | ||||
|             $hyst ne 'none' | ||||
|             ? $max - $hyst | ||||
|             : ( $self->{ASC_rainSensor}->{triggermax} * 0 ) | ||||
|         ) | ||||
|           $hyst ne 'none' | ||||
|         ? $self->{ASC_rainSensor}->{triggermax} - $hyst | ||||
|         : ( $self->{ASC_rainSensor}->{triggermax} * 0 ) | ||||
|     ); | ||||
|  | ||||
|     $self->{ASC_rainSensor}->{shuttersClosedPos} = | ||||
|       (   $pos ne 'none' | ||||
|         ? $pos | ||||
|   | ||||
		Reference in New Issue
	
	Block a user