Skip to content

Commit 9e97c8a

Browse files
authored
Merge pull request #2790 from vuffiraa72/fast-return-false-while-checking
Revert "improve syntax"
2 parents caccbef + 9e60d0a commit 9e97c8a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/helpermodules/command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,9 +822,9 @@ def systemUpdate(self, connection_id: str, payload: dict) -> None:
822822
if not SubData.general_data.data.extern and SubData.system_data["system"].data["secondary_auto_update"]:
823823
for cp in SubData.cp_data.values():
824824
# if chargepoint is external_openwb and not the second CP of duo and version is Release
825-
if all(
826-
cp.chargepoint.chargepoint_module.config.type == 'external_openwb',
827-
cp.chargepoint.chargepoint_module.config.configuration.duo_num == 0,
825+
if (
826+
cp.chargepoint.chargepoint_module.config.type == 'external_openwb' and
827+
cp.chargepoint.chargepoint_module.config.configuration.duo_num == 0 and
828828
cp.chargepoint.data.get.current_branch == "Release"
829829
):
830830
time.sleep(2)

0 commit comments

Comments
 (0)