Skip to content

fix(lighting): validate hue and saturation bounds in OWNLightingCommand.hs - #125

Merged
GreenGrassBlueOcean merged 1 commit into
masterfrom
fix/lighting-hs-validation
Oct 16, 2026
Merged

GreenGrassBlueOcean merged 1 commit into
masterfrom
fix/lighting-hs-validation

Conversation

@GreenGrassBlueOcean

Copy link
Copy Markdown
Contributor

Follow-up to #123 addressing @fedem95's review note (PR #123 review).

Summary

  • Tighten OWNLightingCommand.hs validation to require 0 <= h <= 360 and 0 <= s <= 100 (rejecting negative hue and out-of-range saturation values).
  • Add unit tests in tests/test_who1_ts10_builders.py covering negative hue (-1) and out-of-range saturation (-1, 101).

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fedem95 fedem95 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The hue and saturation bounds are now validated, and the added tests cover the previously missing invalid values. No further concerns.

@GreenGrassBlueOcean
GreenGrassBlueOcean merged commit 0949c0b into master Oct 16, 2026
16 checks passed
@GreenGrassBlueOcean
GreenGrassBlueOcean deleted the fix/lighting-hs-validation branch October 16, 2026 22:19
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