Opt: Skip unknown state in Switch.set

This commit is contained in:
Zebartin 2024-11-15 10:15:41 +08:00
parent 649f11b363
commit 13d8c9100d

View File

@ -153,9 +153,7 @@ class Switch:
if counter >= 1: if counter >= 1:
logger.warning(f'{self.name} switch {state} asset has evaluated to unknown too many times, ' logger.warning(f'{self.name} switch {state} asset has evaluated to unknown too many times, '
f'asset should be re-verified') f'asset should be re-verified')
return False
counter += 1 counter += 1
continue
# Click # Click
if click_timer.reached(): if click_timer.reached():