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:
Tommy Goode
2019-10-17 18:36:55 +02:00
committed by Koen Kanters
parent da58dcbd7c
commit 3ca35ad72f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class DeviceConfigure extends BaseExtension {
return false;
}
if (device.interviewing === true || device.interviewCompleted === false) {
if (device.interviewing === true) {
return false;
}
+2 -2
View File
@@ -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;
});