@zwave-js/cc 15.23.3 → 15.23.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1571,7 +1571,16 @@ let UserCredentialCCUserGet = (() => {
1571
1571
  return UserCredentialCCUserGet2 = _classThis;
1572
1572
  })();
1573
1573
  function testResponseForUserCredentialCredentialSet(sent, received) {
1574
- return received.reportType !== import_Types.UserCredentialCredentialReportType.ResponseToGet && received.credentialType === sent.credentialType && received.credentialSlot === sent.credentialSlot;
1574
+ if (received.reportType === import_Types.UserCredentialCredentialReportType.ResponseToGet) {
1575
+ return false;
1576
+ }
1577
+ if (received.credentialType !== sent.credentialType) {
1578
+ return false;
1579
+ }
1580
+ if (received.reportType === import_Types.UserCredentialCredentialReportType.DuplicateCredential || received.reportType === import_Types.UserCredentialCredentialReportType.DuplicateAdminPINCode) {
1581
+ return true;
1582
+ }
1583
+ return received.credentialSlot === sent.credentialSlot;
1575
1584
  }
1576
1585
  __name(testResponseForUserCredentialCredentialSet, "testResponseForUserCredentialCredentialSet");
1577
1586
  let UserCredentialCCCredentialSet = (() => {