homebridge-zwave-usb 3.6.1 → 3.6.2

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.
@@ -733,14 +733,13 @@ class ZWaveController extends events_1.EventEmitter {
733
733
  }
734
734
  const requiresWakeUp = !node.isListening && !node.isFrequentListening;
735
735
  this.log.info(`Refreshing interview information for Node ${nodeId}${requiresWakeUp ? ' (manual wake-up likely required)' : ''}...`);
736
- try {
737
- await node.refreshInfo();
738
- return { nodeId, requiresWakeUp };
739
- }
740
- catch (err) {
736
+ // Do not await refreshInfo() here. For sleepy nodes zwave-js may wait until
737
+ // the next wake-up before it begins the fresh interview, and the UI should be
738
+ // able to show "queued" state immediately instead of blocking on that wake-up.
739
+ void node.refreshInfo().catch((err) => {
741
740
  this.log.error(`Failed to refresh node info for Node ${nodeId}:`, err);
742
- throw err;
743
- }
741
+ });
742
+ return { nodeId, requiresWakeUp };
744
743
  }
745
744
  async beginFirmwareUpdate(nodeId, update) {
746
745
  const node = this.nodes.get(nodeId);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-zwave-usb",
3
3
  "displayName": "Homebridge Z-Wave USB",
4
- "version": "3.6.1",
4
+ "version": "3.6.2",
5
5
  "description": "A Homebridge dynamic platform plugin for Z-Wave USB controllers using zwave-js.",
6
6
  "license": "Polyform-Noncommercial-1.0.0",
7
7
  "funding": {