Closed shungo27 closed 3 years ago
Hi,
Sorry, I did not see this come in. I only saw it by accident. I'll get back to you shortly. What an odd message.
Interesting indeed. For whatever reason your shell script is returning nothing. In 3.0 I had added parsing of quotes around the incoming data. The data was supposed to have been checked before hand. I guess with all the testing around the quotes, I actually did not notice that the test of no data was moved after the reduce. Ooops. I will fix this ASAP.
Actually, I think it would have failed before as well. instead of reduce, it would have been for match. No matter. A fix is underway.
v3.1.1 submitted to GitHub. Package testing underway before release to NPM.
Package testing complete. Fix is in v3.1.1, however your script I believe is still returning nothing to Cmd4.
thx! the problem is solved!
On Mon, Feb 15, 2021 at 3:39 PM shungo27 notifications@github.com wrote:
thx! the problem is solved!
— You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/ztalbot2000/homebridge-cmd4/issues/89#issuecomment-779437871, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSBCXZSJBJIQB7ZHE7GEVTS7GA6RANCNFSM4XTZR2HA .
I created some unit test cases and submitted 3.1.2 that stumbled upon something else. The unit tests mean this should not happen again. The modularity of v3 allows me to test it in a much better way.
Enjoy Cmd4, TTFN, John Talbot
I get an error every time I restart homebridge.
TypeError: Cannot read property 'reduce' of null
Paste of Logs:
Cmd4 Config:
Environment: