Skip to content

Group workaround - #21

Closed
tylerlv3 wants to merge 4 commits into
mainfrom
group-workaround
Closed

Group workaround#21
tylerlv3 wants to merge 4 commits into
mainfrom
group-workaround

Conversation

@tylerlv3

@tylerlv3 tylerlv3 commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Briefly explain what this PR does and why

Type

  • Feature
  • Fix
  • Docs
  • Chore

Testing

Tested locally as best as I could, but it is a somewhat straightforward change. Will test at trailer.

Risk and rollout

If tint mapping fails we will revert and re implement based on issues we encounter

Checklist

  • Issue linked if applicable
  • Added or updated docs
  • CI green
  • At least one reviewer not the author

… own group to try and get around the exception we were getting when trying to tint individually by panels. Now it routes all tinting through the groups endpoint, whether tinting an actual group, or an individual panel group
The Halio API fails when sending tint commands to individual panels directly, so the RealAdapter uses a workaround where it maps each panel to a single-panel group and sends tint commands to the group endpoint instead.

During initialization, the adapter fetches existing groups and attempts to create missing single-panel groups. However, group creation was failing because the adapter expected a 201 Created HTTP response. According to the Halio Group API documentation, the POST /groups endpoint actually returns a 202 Accepted response.

This commit updates the expected status code in RealAdapter.create_group() from 201 to 202, allowing the group creation workaround to complete successfully during application boot.
@tylerlv3 tylerlv3 closed this Mar 31, 2026
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.

1 participant