Closed caseyjhol closed 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.
device.hasOwnProperty('setLedState')
device.setLedState
setLedState
device
Fixed in v1.0.0-alpha.1.
There's a check to see if
device.hasOwnProperty('setLedState')
before runningdevice.setLedState
. However, at the time of the check,setLedState
isn't yet a property ofdevice
, so the function never runs.