Fix tests failing

This commit is contained in:
Koen Kanters
2021-09-03 16:35:58 +02:00
parent b8c245b9f3
commit cf019195af
+2 -3
View File
@@ -20,6 +20,7 @@ class Bridge extends Extension {
this.restartRequired = false;
this.permitJoinChanged = this.permitJoinChanged.bind(this);
this.eventBus.on('permitJoinChanged', this.permitJoinChanged, this.constructor.name);
this.requestLookup = {
'device/options': this.deviceOptions.bind(this),
@@ -63,8 +64,6 @@ class Bridge extends Extension {
await this.publishInfo();
await this.publishDevices();
await this.publishGroups();
this.eventBus.on('permitJoinChanged', this.permitJoinChanged, this.constructor.name);
}
setupMQTTLogging() {
@@ -81,7 +80,7 @@ class Bridge extends Extension {
}
permitJoinChanged(data) {
if (!this.zigbee.isStopping()) {
if (!this.zigbee.isStopping() && this.zigbee2mqttVersion) {
this.publishInfo();
}
}