Foddy / node-red-contrib-huemagic

Philips Hue node to control bridges, lights, groups, motion sensors, temperature sensors and Lux sensors using Node-RED.
https://flows.nodered.org/node/node-red-contrib-huemagic
Apache License 2.0
201 stars 67 forks source link

Update messages.js #319

Closed ptweety closed 2 years ago

ptweety commented 2 years ago

Fix for "Uncaught Exception: Cannot read properties of undefined (reading 'length')" with resource.starterkitid and resource["whitelist"]

Fixes #302

lougreenwood commented 2 years ago

@ptweety I was taking a look at this PR and was going to suggest that adding tests might help get this PR merged sooner... but then I took a look at the project and it looks like there are no tests - is this true?

lougreenwood commented 2 years ago

@Foddy ❗ 🙏

Foddy commented 2 years ago

Unfortunately there are no tests configured yet for HueMagic... Maybe somebody could help this project with a PR? Unfortunately, I've never done this before on a Node-RED project, but I know that it could save some issues in the future 😅