move terrace block code in ShuttersControl.pm

This commit is contained in:
2020-09-14 08:26:05 +02:00
parent 61d9f29ad7
commit 7b55671166
3 changed files with 9 additions and 9 deletions

View File

@ -985,8 +985,6 @@ sub ShuttersCommandSet {
(
CheckIfShuttersWindowRecOpen($shuttersDev) == 2
&& $shutters->getShuttersPlace eq 'terrace'
&& ( $shutters->getLockOut eq 'soft'
|| $shutters->getLockOut eq 'hard' )
&& !$shutters->getQueryShuttersPos($posValue)
)
|| (
@ -1017,7 +1015,9 @@ sub ShuttersCommandSet {
)
|| ( CheckIfShuttersWindowRecOpen($shuttersDev) == 2
&& $shutters->getShuttersPlace eq 'terrace'
&& !$shutters->getQueryShuttersPos($posValue) )
&& !$shutters->getQueryShuttersPos($posValue)
&& ( $shutters->getLockOut eq 'soft'
|| $shutters->getLockOut eq 'hard' ) )
|| ( $shutters->getRainProtectionStatus eq 'protected'
|| $shutters->getWindProtectionStatus eq 'protected' )
)