Repository navigation
Replace deprecated rgb_order with channel_colors - #129
Conversation
ESPHome 2026.8.0 added channel_colors to the light schema and deprecated rgb_order, is_rgbw and is_wrgb, scheduled for removal in 2027.3.0. Validation folded rgb_order: GRB into channel_colors: GRB and logged a warning on every config and compile of a device using the template. The two forms are equivalent here, since migrate_channel_colors maps a bare rgb_order with no is_rgbw or is_wrgb straight through, so the generated ChannelColors struct is unchanged. Refs #125
|
ⓘ Your Qodo trial ends soon. Ask your workspace admin to set up billing to keep reviews running after the trial. Manage billing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe LED template replaces ChangesLED channel configuration
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This updates the LED template to the current channel-mapping option while retaining the GRB color order. No current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
PR Summary by QodoMigrate RGB status LED to channel_colors
AI Description
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1.
|
There was a problem hiding this comment.
🟢 Approval recommended
The change is a minimal, schema-aligned migration that removes the reported deprecation warning without altering the template’s intended LED behavior.
Pull request overview
Updates the rgb-led-status ESPHome template to eliminate the rgb_order deprecation warning introduced in ESPHome 2026.8.x by switching to the new channel_colors schema field.
Changes:
- Replace
rgb_order: GRBwithchannel_colors: GRBfor theesp32_rmt_led_stripstatus LED configuration.
File summaries
| File | Description |
|---|---|
| templates/rgb-led-status.yaml | Migrates the status LED strip color ordering to channel_colors to avoid ESPHome deprecation warnings. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Answering the one open Qodo finding, since it is tracked outside the review thread.
Declined, with the finding's facts confirmed rather than disputed. Verified independently: channel_colors is absent from the light schema at tag 2026.7.0 and present at 2026.8.0, and at 2026.7.x the esp32_rmt_led_strip schema still marks rgb_order required. A consumer on an older release therefore fails validation twice over, on the unknown key and on the missing required one. The diff is the single line this claim rests on, confirmed against gh pr diff. It is declined on catalog convention rather than on the facts. No template in this repository declares an ESPHome floor, and the tree tracks whatever release the instance runs, so documenting one here alone would introduce a per-template version contract the rest of the catalog does not carry and has no convention for keeping current. Upstream removes the deprecated key in 2027.3.0 regardless, so the floor arrives either way. The esphome min_version key was considered as an enforcing alternative and not taken, for the same reason. Maintainer's call, made on this PR, and recorded here so a later reader finds the reasoning rather than an unanswered finding. |
Resolves the deprecation warning reported in #125.
ESPHome 2026.8.0 added
channel_colorsto the light schema and deprecatedrgb_order,is_rgbwandis_wrgb, scheduled for removal in 2027.3.0. Validation foldedrgb_order: GRBintochannel_colors: GRBand logged a warning on every config and compile of a device composing the template.The two forms are equivalent here.
light.migrate_channel_colorsmaps a barergb_orderwith nois_rgbworis_wrgbstraight through, so the generatedlight::ChannelColorsstruct is unchanged.Verification
Ran against ESPHome 2026.8.2 in the
esphomecontainer, on a snapshot of this branch under the/cachemount so the live/configtree was not touched.developreproduces the warning onhvac-compressor-sensor, and it is gone on this branch.esphome configis valid with norgb_orderwarning on the four templates that compose this one:test/unexpectedmaker-pros3d,test/adafruit-esp32-s3-feather,test/esp32-s3-devkitc,test/waveshare-esp32-s3-eth.esphome configis valid on the live consumers:hvac-compressor-sensor,office-bluetooth-proxy,pantry-bluetooth-proxy,ble-notify-race-test.Note
channel_colorsfirst ships in ESPHome 2026.8.0, so this raises the template's floor to that release. The template is advertised as a remote package inREADME.mdandOPERATIONS.md, and a consumer on an older ESPHome now fails validation rather than logging a warning. Documenting or enforcing that floor is deliberately left out of this change.Summary by CodeRabbit