Skip to content

Commit

Permalink
Fix CMDF Crash
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-j-davies committed Oct 17, 2023
1 parent 13c29c4 commit 5ef93ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# node-red-contrib-zwave-js Change Log

- 9.0.2

**Bug Fixes**
- Fix `CMD Factory` crashing Node RED, when required values are missing.

- 9.0.1

**Bug Fixes**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-zwave-js",
"version": "9.0.1",
"version": "9.0.2",
"license": "MIT",
"description": "The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.",
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions zwave-js/cmd-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ module.exports = function (RED) {
const API = config.api || 'ValueAPI';
switch (API) {
case 'CCAPI':
CCAPI(msg, send);
await CCAPI(msg, send);
break;
case 'ValueAPI':
ValueAPI(msg, send);
await ValueAPI(msg, send);
break;
}
if (done) {
Expand Down

0 comments on commit 5ef93ab

Please sign in to comment.