Skip to content
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

Adds method that allows to identify a light optically #46

Merged
merged 2 commits into from
Dec 15, 2021
Merged

Adds method that allows to identify a light optically #46

merged 2 commits into from
Dec 15, 2021

Conversation

skroczek
Copy link
Contributor

I noticed while experimenting with the library that the function to identify a light is missing. It is very similar to the SetLightState method, but unfortunately the functionality cannot be achieved through it. I think it's mainly because the State always has the "On" property set when serializing to a json object.

@amimof
Copy link
Owner

amimof commented Aug 5, 2021

@skroczek Thansk for this contribution. This is a nice addition to the library. I'd like to see a test covering your code. Other than that, looks awesome.

@codecov-commenter
Copy link

Codecov Report

Merging #46 (d6af478) into master (66b4d4e) will increase coverage by 3.71%.
The diff coverage is 64.70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
+ Coverage   69.71%   73.42%   +3.71%     
==========================================
  Files           5        5              
  Lines        1215     1430     +215     
==========================================
+ Hits          847     1050     +203     
- Misses        201      210       +9     
- Partials      167      170       +3     
Impacted Files Coverage Δ
bridge.go 63.82% <64.70%> (+4.25%) ⬆️
group.go 100.00% <0.00%> (ø)
light.go 100.00% <0.00%> (ø)
scene.go 100.00% <0.00%> (ø)
huego.go 77.60% <0.00%> (+3.05%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 66b4d4e...d6af478. Read the comment docs.

@skroczek
Copy link
Contributor Author

skroczek commented Dec 1, 2021

@amimof thank you very much for your patience. I was very busy in the last months, so I could only now take care of the testing. I hope I have chosen the right tests. If I can improve something, I would be very happy about a feedback.

@amimof amimof merged commit 76fe39c into amimof:master Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants