fix: reuse Switch.get() in Switch.appear()

This commit is contained in:
2026-07-06 22:40:56 +08:00
parent fbc63d0a54
commit e7b60ba3ea
+2 -6
View File
@@ -52,13 +52,9 @@ class Switch:
main (ModuleBase):
Returns:
bool
bool:
"""
for data in self.state_list:
if main.appear(data['check_button']):
return True
return False
return self.get(main=main) != 'unknown'
def get(self, main):
"""