From fff823af3a9a3021a706cb141949577b1995cbc1 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 24 Oct 2023 15:04:09 +0200 Subject: [PATCH] Do not abort provisioning on Error.NO_ERROR --- improv_ble_client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/improv_ble_client/client.py b/improv_ble_client/client.py index 51b4e14..be9d369 100644 --- a/improv_ble_client/client.py +++ b/improv_ble_client/client.py @@ -218,7 +218,7 @@ async def _provision() -> str | None: """Execute the procedure""" def handle_error(value: prot.Error) -> None: - if error_fut.done(): + if value == prot.Error.NO_ERROR or error_fut.done(): return error_fut.set_result(value)