Repository navigation
Key nRF52 logger defaults by chip, like esp32 - #3015
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3015 +/- ##
=======================================
Coverage 99.76% 99.76%
=======================================
Files 300 300
Lines 26388 26403 +15
=======================================
+ Hits 26326 26341 +15
Misses 62 62
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
The board snapshot omits fully qualified alias targets, causing affected configurations to report USB_CDC instead of UART0 after syncing.
1 open issue
What changed in this PR
This PR extends the dashboard’s logger-default resolution to use nRF52 chip variants, following the existing ESP32 approach and supporting upstream nRF54 UART defaults.
Changes:
- Normalize nRF52 chip-specific logger defaults and snapshot board-to-chip mappings.
- Resolve logger defaults by chip, retaining the platform fallback.
- Add tests for snapshot normalization, board resolution, and substitutions.
| File | Description |
|---|---|
tests/test_platform_capabilities.py |
Tests nRF52 snapshot compatibility and logger-key normalization. |
tests/test_device_yaml.py |
Tests chip-specific defaults, fallbacks, and board substitutions. |
script/sync_components.py |
Generates nRF52 board variants and normalizes logger-default keys. |
esphome_device_builder/helpers/device_yaml/_parsing.py |
Resolves nRF52 chips from boards when selecting logger defaults. |
esphome_device_builder/definitions/platform_capabilities.index.json |
Adds an empty board-variant map for the current snapshot. |
esphome_device_builder/definitions/__init__.py |
Adds and loads the nRF52 board-variant capability field. |
Review effort: Balanced
|
|
Bluetooth Devices Bot (bluetoothbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
|
|
Bluetooth Devices Bot (bluetoothbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
|
|
Bluetooth Devices Bot (bluetoothbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
|
|
Bluetooth Devices Bot (bluetoothbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
PR Review — Key nRF52 logger defaults by chip, like esp32Ready to merge. The last open suggestion is fixed and nothing new turned up. What the PR does well:
No open issues. ✅ Resolved since last review (1)Previously-flagged issues verified fixed
Checklist
Automated review by Kōan (Claude) |
Bluetooth Devices Bot (bluetoothbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.

What does this implement/fix?
The dashboard now keys nRF52 logger defaults by chip, resolved from the board like esp32, so esphome/esphome#22173 (
nrf52_54l15=UART0,nrf52_54lm20=UART0) syncs and an nRF54 device shows UART0.nrf52_54l15tonrf54l15, accepts the chips ESPHome knows, and snapshotsnrf52_board_variants({board: variant}) using ESPHome's own board rule, likeesp32_board_variants.nrf52default, asSplitDefaultdoes. With an ESPHome that predates the variants, both stay empty.Test downstream esphome/device-builderjob on [nrf52] Add nRF54LM20/NRF54L15 support and J-Link upload esphome#22173.Related issue or feature (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocsmaintenancecidependenciesFrontend coordination
Checklist
ruff,codespell, yaml/json/python checks).tests/where applicable.components.index.json/definitions/components/*.jsonhave not been hand-edited (regenerate viascript/sync_components.pyif a sync is needed).docs/ARCHITECTURE.mdand/ordocs/API.md.