zigbee-clusters 1.7.1 → 1.7.3

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.
package/README.md CHANGED
@@ -13,6 +13,10 @@ Make sure to take a look at the API documentation: [https://athombv.github.io/no
13
13
 
14
14
  `$ npm install --save zigbee-clusters`
15
15
 
16
+ ## Release
17
+
18
+ Merge to production and include `#patch`, `#minor` or `#major` in the PR/commit message. Or merge to production and run the "Deploy" workflow and provide a version bump parameter.
19
+
16
20
  ## About Zigbee Clusters
17
21
 
18
22
  A Zigbee cluster is an abstraction on top of the Zigbee protocol which allows implementing functionality for many types of devices. A list of all available clusters can be found in the Zigbee Cluster Library Specification [section 2.2.](https://etc.athom.com/zigbee_cluster_specification.pdf). If you are familiar with Z-Wave Command Classes, Zigbee clusters are very similar.
package/lib/Cluster.js CHANGED
@@ -956,7 +956,7 @@ class Cluster extends EventEmitter {
956
956
  return new Promise((resolve, reject) => {
957
957
  const t = setTimeout(() => {
958
958
  delete this._trxHandlers[trxSequenceNumber];
959
- reject(new Error('timeout'));
959
+ reject(new Error('Timeout: Expected Default Response'));
960
960
  }, timeout);
961
961
  this._trxHandlers[trxSequenceNumber] = async frame => {
962
962
  delete this._trxHandlers[trxSequenceNumber];
package/lib/Node.js CHANGED
@@ -73,7 +73,7 @@ class Node extends EventEmitter {
73
73
  */
74
74
  getLogId(endpointId, clusterId) {
75
75
  const cluster = Cluster.getCluster(clusterId);
76
- return getLogId(endpointId, cluster.NAME, clusterId);
76
+ return getLogId(endpointId, cluster ? cluster.NAME : 'unknown', clusterId);
77
77
  }
78
78
 
79
79
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-clusters",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "description": "Zigbee Cluster Library for Node.js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",