Always call zigbee shepherd permit join (in both true and false).

This commit is contained in:
Koenkk
2018-09-29 23:05:18 +02:00
parent 4180bd8933
commit 50d58d3dff
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -59,9 +59,10 @@ class Controller {
logger.warn('`permit_join` set to `true` in configuration.yaml.');
logger.warn('Allowing new devices to join.');
logger.warn('Set `permit_join` to `false` once you joined all devices.');
this.zigbee.permitJoin(true);
}
this.zigbee.permitJoin(settings.get().permit_join);
// Start timers.
this.pollTimer(true);
this.softResetTimeout(true);
+1
View File
@@ -6,6 +6,7 @@ const objectAssignDeep = require(`object-assign-deep`);
const path = require('path');
const defaults = {
permit_join: false,
advanced: {
log_directory: path.join(data.getPath(), 'log', '%TIMESTAMP%'),
log_level: process.env.DEBUG ? 'debug' : 'info',