From 5ef93ab1a429db79ef5342d1410bcfd14cde708a Mon Sep 17 00:00:00 2001 From: Marcus Davies <55892693+marcus-j-davies@users.noreply.github.com> Date: Tue, 17 Oct 2023 19:07:03 +0100 Subject: [PATCH] Fix CMDF Crash --- CHANGELOG.md | 5 +++++ package.json | 2 +- zwave-js/cmd-factory.js | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d73557c0..9c046e16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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** diff --git a/package.json b/package.json index 9e69daad..3c0514bd 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/zwave-js/cmd-factory.js b/zwave-js/cmd-factory.js index 501f2ee8..100c9682 100644 --- a/zwave-js/cmd-factory.js +++ b/zwave-js/cmd-factory.js @@ -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) {