From 13d8c9100df0495968cd66775389dd4d571f0c2c Mon Sep 17 00:00:00 2001 From: Zebartin <16185081+Zebartin@users.noreply.github.com> Date: Fri, 15 Nov 2024 10:15:41 +0800 Subject: [PATCH] Opt: Skip unknown state in Switch.set --- module/ui/switch.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/module/ui/switch.py b/module/ui/switch.py index 95304fe41..6d5ae8d31 100644 --- a/module/ui/switch.py +++ b/module/ui/switch.py @@ -153,9 +153,7 @@ class Switch: if counter >= 1: logger.warning(f'{self.name} switch {state} asset has evaluated to unknown too many times, ' f'asset should be re-verified') - return False counter += 1 - continue # Click if click_timer.reached():