
Is addSwitch example bogus ?
I believe that example for AddSwitch in
https://neeoinc.github.io/neeo-sdk/#lib-device-devicebuilder.js-addswitch
is bogus and should be:
.addSwitch( { name: 'example-switch', label: 'my switch' }, { setter: (deviceid,newValue) => switchState = newValue, getter: (deviceid) => switchState ) } )
Reply
Like
Follow
5replies
-
Marc Martin
Yes it should - the proper place to report SDK related things is by filing an issue on github ( https://github.com/NEEOInc/neeo-sdk ). For this specific issue, I'm pretty sure I already filed the same issue and they have fixed it (in addition to alot more) in the next version..
-
Tim Roberts At least this will give a hint to the next guy, so he doesn't waste hours trying to find out why his perfectly correct piece code doesn't work. Feel free to delete this topic once the fix is released.