fixed unsafe code

This commit is contained in:
illuzn
2022-05-23 15:39:37 +09:30
committed by GitHub
parent e627132f65
commit ce1f16ac18

View File

@@ -161,7 +161,7 @@ class LuiPagesGen(object):
status = f"disable|enable|enable"
elif pos == 0:
status = f"enable|enable|disable"
elif pos == None:
elif pos is None:
pos_status = entity.state
if pos_status == "open":
status = f"disable|enable|enable"