From b58a72f28869d71cf72bdffab9cba1ac7a31c3c1 Mon Sep 17 00:00:00 2001 From: SeaSpotter Date: Sun, 23 Aug 2026 19:46:31 +0200 Subject: [PATCH] Adjust retry condition in hardware_check.py --- packages/modules/common/hardware_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/modules/common/hardware_check.py b/packages/modules/common/hardware_check.py index 6f88ef506b..e29e9146a7 100644 --- a/packages/modules/common/hardware_check.py +++ b/packages/modules/common/hardware_check.py @@ -93,7 +93,7 @@ def request_and_check_hardware(self: ClientHandlerProtocol, pymodbus.exceptions.ConnectionException) as e: evse_check_passed = self.handle_exception(e) # nur warten, wenn danach noch ein Versuch folgt - if attempt < MAX_ATTEMPTS - 2 and evse_check_passed is False: + if attempt < MAX_ATTEMPTS - 1 and evse_check_passed is False: time.sleep(RETRY_DELAY_SECONDS) except Exception as e: evse_check_passed = self.handle_exception(e)