From fe9cab9f0a5041ba7764cbf432010c8ed63130c9 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Thu, 14 Mar 2024 20:27:31 +0100 Subject: [PATCH] fix: Conbee: fix sporadic `UnhandledPromiseRejection` error when permit join is enabled https://github.com/Koenkk/zigbee2mqtt/issues/21696 --- src/adapter/deconz/adapter/deconzAdapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter/deconz/adapter/deconzAdapter.ts b/src/adapter/deconz/adapter/deconzAdapter.ts index 66f4dde941..846f59d14b 100644 --- a/src/adapter/deconz/adapter/deconzAdapter.ts +++ b/src/adapter/deconz/adapter/deconzAdapter.ts @@ -154,7 +154,7 @@ class DeconzAdapter extends Adapter { } else { this.joinPermitted = true; } - this.driver.writeParameterRequest(PARAM.PARAM.Network.PERMIT_JOIN, seconds); + await this.driver.writeParameterRequest(PARAM.PARAM.Network.PERMIT_JOIN, seconds); debug("PERMIT_JOIN - " + seconds + " seconds"); } catch (error) {