zwave-js 15.4.0 → 15.4.1

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.
@@ -1,3 +1,3 @@
1
- export declare const PACKAGE_VERSION = "15.4.0";
1
+ export declare const PACKAGE_VERSION = "15.4.1";
2
2
  export declare const PACKAGE_NAME = "zwave-js";
3
3
  //# sourceMappingURL=_version.d.ts.map
@@ -22,7 +22,7 @@ __export(version_exports, {
22
22
  PACKAGE_VERSION: () => PACKAGE_VERSION
23
23
  });
24
24
  module.exports = __toCommonJS(version_exports);
25
- const PACKAGE_VERSION = "15.4.0";
25
+ const PACKAGE_VERSION = "15.4.1";
26
26
  const PACKAGE_NAME = "zwave-js";
27
27
  // Annotate the CommonJS export names for ESM import in node:
28
28
  0 && (module.exports = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/lib/_version.ts"],
4
- "sourcesContent": ["// This file is auto-generated by the codegen maintenance script\nexport const PACKAGE_VERSION = \"15.4.0\";\nexport const PACKAGE_NAME = \"zwave-js\";\n"],
4
+ "sourcesContent": ["// This file is auto-generated by the codegen maintenance script\nexport const PACKAGE_VERSION = \"15.4.1\";\nexport const PACKAGE_NAME = \"zwave-js\";\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;AAAA;;;;;;AACO,MAAM,kBAAkB;AACxB,MAAM,eAAe;",
6
6
  "names": []
7
7
  }
@@ -516,7 +516,8 @@ let ZWaveNode = (() => {
516
516
  this._refreshInfoPending = true;
517
517
  const { resetSecurityClasses = false, waitForWakeup = true } = options;
518
518
  let didWakeUp = false;
519
- if (waitForWakeup && this.canSleep && this.supportsCC(import_core.CommandClasses["Wake Up"])) {
519
+ const wasAwake = this.status === import_Types.NodeStatus.Awake;
520
+ if (waitForWakeup && this.canSleep && !wasAwake && this.supportsCC(import_core.CommandClasses["Wake Up"])) {
520
521
  this.driver.controllerLog.logNode(this.id, "Re-interview scheduled, waiting for node to wake up...");
521
522
  didWakeUp = await this.waitForWakeup().then(() => true).catch(() => false);
522
523
  }
@@ -570,8 +571,11 @@ let ZWaveNode = (() => {
570
571
  this.valueDB.setMetadata(valueId, metadata, { noEvent: true });
571
572
  }
572
573
  this.keepAwake = false;
573
- if (didWakeUp)
574
+ if (didWakeUp || wasAwake) {
575
+ this.isListening = false;
576
+ this.isFrequentListening = false;
574
577
  this.markAsAwake();
578
+ }
575
579
  void this.driver.interviewNodeInternal(this);
576
580
  this._refreshInfoPending = false;
577
581
  }