mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-16 02:18:31 -07:00
Fix error when configure section of device is removed.
This commit is contained in:
parent
cb855373ac
commit
e1d51e6171
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user