peter-murray / node-hue-api

Node.js Library for interacting with the Philips Hue Bridge and Lights
Apache License 2.0
1.19k stars 145 forks source link

Fixed pure CT call. #19

Closed octplane closed 9 years ago

octplane commented 9 years ago

When calling lightState with only a CT value, the rgb test would fail because the method rgb() had never been called before, thus matching the condition erronously. The simple test fix settings the color with white(temp, bri).

peter-murray commented 9 years ago

Thanks for the pull request, but I am rewriting the light state module which should remove the need for this check altogether, and am changing the code around this function to use the new light state.

The changes will be available in version 1.0.0 of the library which is being released soon.

octplane commented 9 years ago

ok :)