mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-28 05:24:29 +00:00
Fix error when configure section of device is removed.
This commit is contained in:
@@ -13,7 +13,7 @@ class DeviceConfigure extends BaseExtension {
|
||||
}
|
||||
|
||||
shouldConfigure(device, mappedDevice) {
|
||||
if (!device || !mappedDevice) {
|
||||
if (!device || !mappedDevice || !mappedDevice.configure) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -23,10 +23,6 @@ class DeviceConfigure extends BaseExtension {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!mappedDevice || !mappedDevice.configure) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (device.interviewing === true) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user