From 549ccf036ed926fc0bf86a09964db94bcd2d5909 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sun, 17 Oct 2021 18:19:13 +0200 Subject: [PATCH] Fix start being called twice for external extensions. https://github.com/Koenkk/zigbee2mqtt/issues/9165 --- lib/controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller.ts b/lib/controller.ts index 3e61b621..92a9751a 100644 --- a/lib/controller.ts +++ b/lib/controller.ts @@ -149,7 +149,7 @@ class Controller { } // Call extensions - await this.callExtensions('start', this.extensions); + await this.callExtensions('start', [...this.extensions]); // Send all cached states. if (settings.get().advanced.cache_state_send_on_startup && settings.get().advanced.cache_state) {