Fix raw argument handling in Supervisor API call#190
Fix raw argument handling in Supervisor API call#190lmagyar wants to merge 4 commits intohassio-addons:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughFor POST requests in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
|
not stale |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
|
not stale |
There was a problem hiding this comment.
Pull request overview
This PR updates bashio::api.supervisor to better distinguish between JSON API responses and “raw” (plain-text) endpoints, and to prevent POST payload handling from polluting the raw flag behavior.
Changes:
- Clear the
rawvariable after it is repurposed as POST body data. - Add conditional logic intended to avoid checking
.result/.messageon responses that don’t follow the standard JSON envelope. - Use
bashio::jq.existsas a guard before reading.result.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This reverts commit a97f0b1.
|
Now it's ready for human review again. |
Proposed Changes
Needs #192 to be merged to function properly.
Related Issues
Summary by CodeRabbit