From d8ec59bd9ff054c40a135142e8175d74bf310a30 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Fri, 24 Apr 2020 22:43:35 +0200 Subject: [PATCH] Don't add coordinator to configuration.yaml. #3421 --- lib/controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller.js b/lib/controller.js index ea0febd8..3fded4ee 100644 --- a/lib/controller.js +++ b/lib/controller.js @@ -185,7 +185,7 @@ class Controller { async onZigbeeEvent(type, data) { const resolvedEntity = this.zigbee.resolveEntity(data.device || data.ieeeAddr); - if (data.device && !resolvedEntity.settings) { + if (data.device && !resolvedEntity.settings && data.device.type !== 'Coordinator') { // Only deviceLeave doesn't have a device (not interesting to add to settings) resolvedEntity.settings = settings.addDevice(data.device.ieeeAddr); }