Closed Doridian closed 9 years ago
Thanks for pointing out the flaws in the light state object.
I appreciate the pull request, but based on how bad my implementation is, I am rewriting this module for the 1.0.0 release of the library which I am currently preparing for release soon.
I have now implemented a completely new LightState object in the dev-1.0.0
branch that resolves the issues you have pointed out, check it out here 396739d6320ab241726bb394e678de74bbbdfae8.
Thanks
Otherwise calling "on" would not work if you already called either "on" or "off" due to the property being named like the function. Same goes for stuff like "rgb"