caseyjhol / node-red-contrib-tplink

A collection of Node-RED nodes for TP-Link Smart Home devices
https://www.npmjs.com/package/node-red-contrib-tplink-iot
MIT License
16 stars 15 forks source link

Setting led property doesn't work #33

Closed caseyjhol closed 4 years ago

caseyjhol commented 4 years ago

There's a check to see if device.hasOwnProperty('setLedState') before running device.setLedState. However, at the time of the check, setLedState isn't yet a property of device, so the function never runs.

caseyjhol commented 4 years ago

Fixed in v1.0.0-alpha.1.