Repository navigation
Use core CH390 ethernet and share one min_version - #130
Conversation
ESPHome shipped CH390 support in 2026.8, so ch390/components, the patched copy of the core ethernet component that added the type, is removed and the ThinkNode M7 template, its device config, and its test config now use the built-in component with no external_components block. templates/min-version.yaml is the single place the esphome min_version floor is written, set to 2026.8.2, the release the templates were last compiled against. Every board template reaches it through common.yaml or through its own packages entry, so a bump edits one file rather than every template. The thinknode-m7 bench, nettest, ethid, and loraid scratch configs are deleted, their hardware questions having been answered. Verified on ESPHome 2026.8.2: esphome config on all 22 test configs and all 15 device configs, and esphome compile on test/elecrow-thinknode-m7.yaml. Closes #128 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
ⓘ Your Qodo trial ends soon. Ask your workspace admin to set up billing to keep reviews running after the trial. Manage billing |
|
Warning Review limit reachedNext included review available in 13 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (28)
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 QodoAdopt core CH390 and centralize ESPHome minimum version
AI Description
Diagram
High-Level Assessment
Files changed (14)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can route each action level your way: inline, summary, both, or drop |
There was a problem hiding this comment.
🟢 Approval recommended
The diff cleanly removes the local ethernet shadow component with no remaining references and consistently enforces a single shared min_version across all board templates.
Pull request overview
This PR updates the repository to rely on ESPHome core’s CH390 Ethernet support (removing the vendored ch390/components shadow component) and centralizes the ESPHome min_version floor into a single shared template so all device templates enforce the same minimum ESPHome release.
Changes:
- Remove the local CH390 external component and drop all
external_componentsblocks that referenced it. - Introduce
templates/min-version.yaml(min_version2026.8.2) and include it from all board templates (directly or viatemplates/common.yaml). - Delete ThinkNode M7 scratch/test configs that are no longer needed; update docs and CI guard lists accordingly.
File summaries
| File | Description |
|---|---|
| thinknode-m7.yaml | Removes the now-unneeded local external_components override for ethernet. |
| thinknode-m7-nettest.yaml | Deletes obsolete scratch config used for earlier network-stack testing. |
| thinknode-m7-loraid.yaml | Deletes obsolete scratch config used for earlier LoRa identity probing. |
| thinknode-m7-ethid.yaml | Deletes obsolete scratch config used for earlier ethernet ID probing. |
| thinknode-m7-bench.yaml | Deletes obsolete bench config that depended on the vendored ethernet component. |
| test/elecrow-thinknode-m7.yaml | Removes external_components override; relies on core CH390 support via template. |
| templates/waveshare-esp32-s3-eth.yaml | Includes the shared min-version package directly (template can’t use common.yaml). |
| templates/sonoff-s31.yaml | Includes the shared min-version package directly. |
| templates/smarthome-ceilsense.yaml | Includes the shared min-version package directly alongside upstream vendor packages. |
| templates/min-version.yaml | New shared package defining esphome.min_version: 2026.8.2. |
| templates/konnected-blaq.yaml | Includes the shared min-version package directly alongside upstream vendor package. |
| templates/gls10-bluetooth-proxy.yaml | Includes the shared min-version package directly (template uses ethernet). |
| templates/elecrow-thinknode-m7.yaml | Removes CH390 “required external components” header and includes shared min-version directly. |
| templates/common.yaml | Pulls in the shared min-version package so templates using common.yaml inherit the floor. |
| templates/apollo-plt-1b.yaml | Includes the shared min-version package alongside the upstream Apollo package. |
| README.md | Documents the shared min-version template and links it in the template catalog. |
| OPERATIONS.md | Adds operational guidance on where/how the minimum ESPHome version is enforced. |
| ch390/components/ethernet/w5500_custom_spi.h | Removes vendored ethernet shadow component content (now relying on core). |
| ch390/components/ethernet/w5500_custom_spi.cpp | Removes vendored ethernet shadow component content (now relying on core). |
| ch390/components/ethernet/ethernet_helpers.c | Removes vendored ethernet shadow component content (now relying on core). |
| ch390/components/ethernet/ethernet_component.h | Removes vendored ethernet shadow component content (now relying on core). |
| ch390/components/ethernet/ethernet_component.cpp | Removes vendored ethernet shadow component content (now relying on core). |
| ch390/components/ethernet/ethernet_component_rp2.cpp | Removes vendored ethernet shadow component content (now relying on core). |
| ch390/components/ethernet/ethernet_component_esp32.cpp | Removes vendored ethernet shadow component content (now relying on core). |
| ch390/components/ethernet/esp_eth_phy_jl1101.c | Removes vendored ethernet shadow component content (now relying on core). |
| ch390/components/ethernet/automation.h | Removes vendored ethernet shadow component content (now relying on core). |
| ch390/components/ethernet/init.py | Removes vendored ethernet shadow component content (now relying on core). |
| .github/workflows/test-pull-request.yml | Adds min-version to the UTILITY list so CI doesn’t require a test/min-version.yaml example. |
Review details
- Files reviewed: 28/28 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
The spaced hyphen in the README bullet and the lowercase package key in the min-version.yaml usage block are the shapes the gate rejects on a changed line. The neighbouring bullets keep their hyphens because the gate reads the diff rather than the file. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The CH390 vendored component removal and shared min_version include are consistent across templates/docs/CI, and no remaining references to the removed ch390/components path were found.
Review details
- Files reviewed: 28/28 changed files
- Comments generated: 0 new
- Review effort level: Lite
Closes #128.
CH390 from core
ESPHome shipped CH390 ethernet support in 2026.8, so
ch390/componentsis removed and every consumer drops itsexternal_componentsblock:templates/elecrow-thinknode-m7.yaml, plus itsRequired external components:header block.thinknode-m7.yamlandtest/elecrow-thinknode-m7.yaml.The vendored copy was a snapshot of an older release. Core's version is a strict superset: it keeps
polling_interval, and adds the network-priority and ethernet-plus-wifi coexistence work the snapshot predates.One place for
min_versiontemplates/min-version.yamlis new and holds the onlyesphome:min_versionin the tree, set to2026.8.2. Every board template reaches it, throughcommon.yamlor through its ownpackages:entry, so bumping the floor edits one file rather than every template.common.yamlcovers nine board templates; the seven that cannot use it (apollo-plt-1b,elecrow-thinknode-m7,gls10-bluetooth-proxy,konnected-blaq,smarthome-ceilsense,sonoff-s31,waveshare-esp32-s3-eth) include it directly.Overlays,
easystart.yaml, and the utility includes carry no copy, since they are only ever composed onto a board template.min-versionis added to the workflow'sUTILITYlist so the matrix guard does not demand an example device for it.OPERATIONS.mdgains aMinimum ESPHome Versionnote andREADME.mdlists the new template.Scratch configs removed
thinknode-m7-bench.yaml,thinknode-m7-nettest.yaml,thinknode-m7-ethid.yaml, andthinknode-m7-loraid.yamlare deleted; the hardware questions they were flashed to answer are answered.thinknode-m7.yamlstays.Verification
On ESPHome 2026.8.2, in
ptr727/esphome-nonroot:latest:esphome configon all 22test/configs: valid.esphome configon all 15 root device configs: valid.esphome compileontest/elecrow-thinknode-m7.yaml: successful, against core's CH390.min_versionto2099.1.0, which failedtest/sonoff-s31.yamlwithYour ESPHome version is too old, so a package-supplied floor is honoured.🤖 Generated with Claude Code