mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-27 21:20:03 +00:00
Allow a device to be configured even if the interview process fails (#2150)
* Allow a device to be configured even if the interview process fails. This fixes #2148. * Adjust failing test to account for new behavior.
This commit is contained in:
committed by
Koen Kanters
parent
da58dcbd7c
commit
3ca35ad72f
@@ -24,7 +24,7 @@ class DeviceConfigure extends BaseExtension {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (device.interviewing === true || device.interviewCompleted === false) {
|
||||
if (device.interviewing === true) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ describe('Device receive', () => {
|
||||
device.interviewing = false;
|
||||
});
|
||||
|
||||
it('Should not configure when not interviewCompleted', async () => {
|
||||
it('Should configure when not interviewCompleted', async () => {
|
||||
const device = zigbeeHerdsman.devices.remote;
|
||||
delete device.meta.configured;
|
||||
device.interviewCompleted = false;
|
||||
@@ -98,7 +98,7 @@ describe('Device receive', () => {
|
||||
const payload = {data: {zclVersion: 1}, cluster: 'genBasic', device, endpoint, type: 'attributeReport', linkquality: 10};
|
||||
await zigbeeHerdsman.events.message(payload);
|
||||
await flushPromises();
|
||||
expectRemoteNotConfigured();
|
||||
expectRemoteConfigured();
|
||||
device.interviewCompleted = true;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user