-
Notifications
You must be signed in to change notification settings - Fork 35
setting state.on to the right value after sending state changes to the bridge #38 #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
adding color converting to lights and groups
|
@willie68 Thanks for contributing 👏 Please tell me when this is ready for review |
|
I think review can happen now. |
|
How about if |
|
Changed the comments, added comment on ConvertRGB, adding tests. |
|
@willie68 Did you read my latest comment about |
|
I just tested with bri = 0 and the light are not off, it's the lowest possible brightness but it's not off. So setting lights to bright 0 will not shut them down. That means state.on = true even if the bri is 0. |
| if err != nil { | ||
| t.Fatal(err) | ||
| } | ||
| assert.True(t, light.IsOn()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is why tests fails. It doesn't receive expected result. Can you have a look?
|
Just missed a single light.State.On = true |
THis is the simple solution. At the moment the response of the bridge will not be evaluated. (Maybe in the next step)