mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 05:24:29 +00:00
Fix tests failing
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user