isy-nodejs 1.0.1-alpha.2 → 1.0.1-alpha.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "isy-nodejs",
3
3
  "description": "Node.js wrapper for ISY interface including websockets for change notifications. Fork of isy-js by Rod Toll. Designed to be used in a node.js application.",
4
4
  "license": "MIT",
5
- "version": "1.0.1-alpha.2",
5
+ "version": "1.0.1-alpha.3",
6
6
  "author": {
7
7
  "name": "Pradeep Mouli"
8
8
  },
@@ -71,5 +71,5 @@
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "8004f489e0ea150182931c54a999bf90f941d829"
74
+ "gitHead": "5671288e3fde06848a4767d39c22b987157fc20a"
75
75
  }
package/src/ISYNode.ts CHANGED
@@ -269,7 +269,7 @@ export class ISYNode<
269
269
  const oldValue = this.drivers[propertyName].value;
270
270
  if (this.drivers[propertyName].patch(value, formattedValue, uom, prec)) {
271
271
  this.emit('PropertyChanged', propertyName, value, oldValue, formattedValue);
272
- this.scenes.forEach((element) => {
272
+ this.scenes?.forEach((element) => {
273
273
  this.logger(`Recalulating ${element.deviceFriendlyName}`);
274
274
  element.recalculateState();
275
275
  });