Skip to content

Commit

Permalink
Await permit join before continuing with startup. #2617
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Jan 31, 2020
1 parent 0111681 commit 4926fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4926fb8

Please sign in to comment.