Skip to content

Fix nRF52 starter config hint and add XIAO nRF52840 photo - #2970

Merged
J. Nick Koston (bdraco) merged 5 commits into
esphome:mainfrom
tomaszduda23:fix_ble_xiao
Oct 25, 2026
Merged

J. Nick Koston (bdraco) merged 5 commits into
esphome:mainfrom
tomaszduda23:fix_ble_xiao

Conversation

@tomaszduda23

@tomaszduda23 tomaszduda23 commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

What does this implement/fix?

nRF52 starter config hint. New nRF52 device configs got the generic no-Wi-Fi TODO comment, which tells the user to configure openthread: / ethernet: / esp32_hosted: before adding api: and ota:. That is wrong for nRF52:

  • OTA on nRF52 is zephyr_mcumgr (BLE or USB CDC), which needs no network component.
  • ethernet: and esp32_hosted: don't run on nRF52; api: there works only over openthread: (credentials via tlv).

generate_device_yaml now emits an nRF52-specific hint:

# This board has no Wi-Fi. Firmware updates over the air use the
# ``zephyr_mcumgr`` OTA platform (BLE or USB CDC):
# ota:
#   - platform: zephyr_mcumgr
# ``api:`` requires a ``network`` component — configure
# ``openthread:`` (credentials via ``tlv``), then add ``api:``.

Other no-Wi-Fi boards keep the existing hint.

XIAO nRF52840 photo. xiao_ble was a generated board with no manifest. This adds a curated boards/xiao_ble/manifest.yaml with the board photo; name, docs URL and the generated pin map are carried over unchanged, so the regenerated body differs only in images.

Related issue or feature (if applicable):

  • fixes

Types of changes

  • Bugfix (non-breaking change which fixes an issue) — bugfix
  • New feature (non-breaking change which adds functionality) — new-feature
  • Enhancement to an existing feature — enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) — breaking-change
  • Refactor (no behaviour change) — refactor
  • Documentation only — docs
  • Maintenance / chore — maintenance
  • CI / workflow change — ci
  • Dependencies bump — dependencies

Frontend coordination

  • No frontend change needed
  • Companion frontend PR: esphome/device-builder-frontend#

Checklist

  • The code change is tested and works locally.
  • Pre-commit hooks pass (ruff, codespell, yaml/json/python checks).
  • Tests have been added or updated under tests/ where applicable.
  • components.index.json / definitions/components/*.json have not been hand-edited (regenerate via script/sync_components.py if a sync is needed).
  • Architecture-level changes are reflected in docs/ARCHITECTURE.md and/or docs/API.md.

@github-actions github-actions Bot added the enhancement Improvement to an existing feature label Oct 25, 2026
@codspeed

codspeed Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 28 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing tomaszduda23:fix_ble_xiao (fa79d6a) with main (e6984b7)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

@tomaszduda23

Copy link
Copy Markdown
Contributor Author

ESPHome Bot (@esphbot) review

@codecov

codecov Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.76%. Comparing base (e6984b7) to head (fa79d6a).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2970   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files         300      300           
  Lines       26429    26430    +1     
=======================================
+ Hits        26367    26368    +1     
  Misses         62       62           
Flag Coverage Δ
py3.12 99.73% <100.00%> (+<0.01%) ⬆️
py3.14 99.61% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
..._device_builder/helpers/device_yaml/_generation.py 99.31% <100.00%> (+<0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@esphbot

ESPHome Bot (esphbot) commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Previous review — superseded by a newer review below.

@esphbot ESPHome Bot (esphbot) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

No blocking issues found — ready to merge.

Lets the xiao_ble manifest ship pins: [] instead of freezing the generated
matrix, and notes the nRF52 case in the no-network hint branch comment.

Claude-Session: https://claude.ai/code/session_01Fdvos57eqbd53HagDnrYML
@tomaszduda23

Copy link
Copy Markdown
Contributor Author

ESPHome Bot (@esphbot) review

@esphbot

Copy link
Copy Markdown
Contributor

PR Review — Fix nRF52 starter config hint and add XIAO nRF52840 photo

Merge-ready. Both earlier suggestions are fixed, and I found no new issues.

What's good:

  • Pins are no longer frozen. The manifest now ships pins: [], and _augment_nrf52_boards (script/sync_boards.py:874-876) fills empty pins on manifested nRF52 boards. This works the same way the LibreTiny boards are filled. The pin map stays generated from esphome's AIN_TO_GPIO instead of being frozen at today's values.
  • The new pin fill is tested. test_nrf52_fills_manifested_board_empty_pins checks that the board gets the 49-pin matrix and is not added a second time from BOARDS_ZEPHYR.
  • The manifest-vs-disk test was updated to match. test_split_artefacts_match_manifests now treats nRF52 like LibreTiny: its manifested pins come from esphome, so the test no longer compares them against a hand-written list.
  • The branch comment is fixed. The comment above the no-Wi-Fi branch in _generation.py now explains why nRF52 gets the zephyr_mcumgr hint instead.
  • The pin fill can't affect other boards. xiao_ble is the only nRF52 board with a manifest today.
  • Generated files look regenerated, not hand-edited. boards.index.json and board_bodies/xiao_ble.json differ from before only in images.

Issues:

  • None.


Checklist

  • No hardcoded secrets
  • Generated catalog files consistent with manifest (not hand-edited)
  • New branches covered by tests
  • Comments accurate after change

Automated review by Kōan (Claude) HEAD=fa79d6a 27s

@esphbot ESPHome Bot (esphbot) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

No blocking issues found — ready to merge.

@bdraco
J. Nick Koston (bdraco) merged commit 1adedf4 into esphome:main Oct 25, 2026
22 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Improvement to an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants