Repository navigation
Serve the Checkout From Device Builder and Debug It in VS Code - #230
Conversation
- Pass the checkout path to esphome-device-builder, which serves ./configs without one. - Point the VS Code launch config at esphome_device_builder, since esphome dashboard only prints a redirect on ESPHome 2026.9.1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit details
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #230 +/- ##
========================================
Coverage 43.07% 43.07%
========================================
Files 1 1
Lines 130 130
========================================
Hits 56 56
Misses 74 74
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
Resolve the debug-launch conflict with the devcontainer’s existing Device Builder process.
1 open finding
What changed in this PR
Updates Device Builder checkout serving and the VS Code debug configuration.
Changes:
- Documents serving the checkout root.
- Replaces the obsolete dashboard launch with Device Builder.
- The debug launch conflicts with the devcontainer’s existing Device Builder process.
| File | Summary |
|---|---|
OPERATIONS.md |
Documents serving the checkout root. |
.vscode/launch.json |
Configures Device Builder debugging; conflicts with the devcontainer process. |
🧠 Review effort: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Give the launch config its own data directory and port 6054, since Device Builder allows one instance per data directory and the image entrypoint already serves 6052. - Forward 6054 from the devcontainer and document the pair. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |

Answers the Copilot round on the promotion PR #228. That round named four topics in its headline and opened no threads: checkout path, Python version, cleanup, and VS Code launch configuration.
Changes
esphome-device-builder .from the checkout root. Device Builder'sconfigurationargument defaults to./configs, so the bare command served the wrong directory..vscode/launch.jsondebug config ranpython -m esphome dashboard /config, which ESPHome 2026.9.1 rejects. It runs theesphome_device_buildermodule with--log-level debug /config, renamed to match.The Other Two Topics
>=3.12.0,<3.15and Device Builder requires>=3.12, so the venv the existing setup step already makes for ESPHome satisfies both. Device Builder's ESPHome dependency sits behind an extra the doc does not install, so it cannot conflict with the pinnedesphome.secrets.yamlguard removes its temporary file on every failure path and renames it on success. Only an interrupt in the window betweenmktempandmvleaves it, and that shows ingit statusrather than failing silently.Verification
python3 -m esphome_device_builder --log-level debug --helpparses in the ESPHome 2026.9.1 image.ESPHOME_DATA_DIRand port 6054, the devcontainer forwards 6054, and "Debugging in the DevContainer" says what the two instances share. In a throwaway 2026.9.1 container with the entrypoint running, the same-data-dir run exited on the lock, while the fixed invocation started, and 6052 and 6054 both answered HTTP 200 at once.🤖 Generated with Claude Code