Await permit join before continuing with startup. https://github.com/Koenkk/zigbee2mqtt/issues/2617

This commit is contained in:
Koen Kanters
2020-01-31 22:52:39 +01:00
parent 0111681cb7
commit 4926fb85ae
+1 -1
View File
@@ -126,7 +126,7 @@ class Controller {
logger.warn('Set `permit_join` to `false` once you joined all devices.');
}
this.zigbee.permitJoin(settings.get().permit_join);
await this.zigbee.permitJoin(settings.get().permit_join);
// MQTT
this.mqtt.on('message', this.onMQTTMessage.bind(this));