Fix ESPHome dev build: replace deprecated Select .state with current_option()#41
Conversation
Bumps the github-actions group with 3 updates: [actions/checkout](https://github.com/actions/checkout), [esphome/workflows/.github/workflows/build.yml](https://github.com/esphome/workflows) and [actions/download-artifact](https://github.com/actions/download-artifact). Updates `actions/checkout` from 6.0.3 to 7.0.0 - [Release notes](https://github.com/actions/checkout/releases) - [Commits](actions/checkout@v6.0.3...v7) Updates `esphome/workflows/.github/workflows/build.yml` from 2025.10.0 to 2026.4.1 - [Release notes](https://github.com/esphome/workflows/releases) - [Commits](esphome/workflows@e7eee2a...025a1e6) Updates `actions/download-artifact` from 7.0.0 to 8.0.1 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@37930b1...3e5f45b) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: esphome/workflows/.github/workflows/build.yml dependency-version: 2026.4.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/download-artifact dependency-version: 8.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
…s/github-actions-3758148135 chore(ci): bump the github-actions group with 3 updates
…option() ESPHome removed the deprecated std::string state member from select entities on the dev branch (deprecated 2026.1.0, removal 2026.7.0), which broke the CI dev-channel build: 'class esphome::template_::TemplateSelect<...>' has no member named 'state' current_option() is available since 2026.1.0, well within this config's min_version of 2026.6.0. Runtime behavior is unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 39 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis change updates the ESPHome Core.yaml version string and modifies the ChangesCore.yaml Update
Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 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 |
Version: 26.7.7.1
What does this implement/fix?
Fixes the CI dev-channel build failure:
ESPHome removed the deprecated
std::string statemember from select entities on the dev branch (deprecated in 2026.1.0, removed for 2026.7.0). Theapply_ota_sourcescript lambda inIntegrations/ESPHome/Core.yamlread.stateon thefirmware_selectorandfirmware_channelselects, which no longer compiles against dev.This switches the lambda to the replacement accessor
current_option(), which returns aStringRefthat compares directly against string literals.current_option()exists since ESPHome 2026.1.0, well within this config'smin_version: 2026.6.0, so stable, beta, and dev all compile. Runtime behavior is unchanged.Also bumps the firmware version to 26.7.7.1 per convention.
Types of changes
Checklist / Checklijst:
If user-visible functionality or configuration variables are added/modified:
🤖 Generated with Claude Code
Summary by CodeRabbit