Don't add coordinator to configuration.yaml. #3421

This commit is contained in:
Koen Kanters
2020-04-24 22:43:35 +02:00
parent 48641f3028
commit d8ec59bd9f
+1 -1
View File
@@ -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);
}