Repository navigation
Offer free pins on imported boards and keep their unconsumed buses - #3033
Conversation
|
ESPHome Bot (@esphbot) review |
Merging this PR will degrade performance by 65.48%2 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3033 +/- ##
=======================================
Coverage 99.77% 99.77%
=======================================
Files 300 300
Lines 26522 26556 +34
=======================================
+ Hits 26461 26495 +34
Misses 61 61
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
|
ESPHome Bot (esphbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.
There was a problem hiding this comment.
🟡 Changes recommended
Generated UART configurations leave serial logging enabled on the MCU command channel, while the importer incorrectly discards orphan bus configurations with alias-valued pins.
2 open issues
What changed in this PR
This PR expands imported board pin tables and preserves fixed buses that have no catalogued consumer, addressing the M5StickC PLUS setup problem reported in #2992.
Changes:
- Fill occupancy-only pin tables while preserving existing reservations.
- Import pinned buses as featured components with locked wiring.
- Refresh selected board artifacts and add occupancy and bus-extraction regression tests.
| File | Description |
|---|---|
tests/test_sync_esphome_devices_bus_dep.py |
Tests orphan-bus extraction and filtering. |
tests/test_sync_boards_occupancy.py |
Tests pinout filling and reservation preservation. |
tests/test_sync_boards_donor.py |
Moves Levoit coverage to occupancy tests. |
tests/test_boards_json.py |
Includes occupancy processing in artifact checks. |
esphome_device_builder/definitions/boards/xiaomi_gateway_3/manifest.yaml |
Adds Zigbee UART and I2C presets. |
esphome_device_builder/definitions/boards/waveshare_esp32_s3_touch_amoled_1_75/manifest.yaml |
Adds the fixed I2C bus. |
esphome_device_builder/definitions/boards/waveshare_esp32_s3_eth_8di_8ro/manifest.yaml |
Adds the Modbus UART preset. |
esphome_device_builder/definitions/boards/waveshare_epaper_cloud_module/manifest.yaml |
Adds the display SPI bus. |
esphome_device_builder/definitions/boards/waveshare_6ch_relay/manifest.yaml |
Adds the Modbus UART preset. |
esphome_device_builder/definitions/boards/usr_eg118/manifest.yaml |
Adds configuration and RS485 UART presets. |
esphome_device_builder/definitions/boards/tinxy_4n_fan_regulator/manifest.yaml |
Adds the MCU UART preset. |
esphome_device_builder/definitions/boards/sonoff_s60tpf/manifest.yaml |
Adds the receive-only UART preset. |
esphome_device_builder/definitions/boards/sonoff_powr316_16a/manifest.yaml |
Adds the receive-only UART preset. |
esphome_device_builder/definitions/boards/sonoff_dual_diy_light/manifest.yaml |
Adds the controller UART preset. |
esphome_device_builder/definitions/boards/shelly_pro_em_50/manifest.yaml |
Adds the fixed I2C bus. |
esphome_device_builder/definitions/boards/refoss_p11_plug/manifest.yaml |
Adds the CSE7766 UART preset. |
esphome_device_builder/definitions/boards/qiachip_smart_switch/manifest.yaml |
Adds the fixed UART bus. |
esphome_device_builder/definitions/boards/petkit_fresh_element_solo_pet_feeder/manifest.yaml |
Adds the fixed UART bus. |
esphome_device_builder/definitions/boards/nous_b3t/manifest.yaml |
Adds the UART preset and framing settings. |
esphome_device_builder/definitions/boards/m5stack_m5stickc_plus2/manifest.yaml |
Adds the fixed SPI bus. |
esphome_device_builder/definitions/boards/m5stack_m5stickc_plus/manifest.yaml |
Adds I2C bus_a on GPIO21/22. |
esphome_device_builder/definitions/boards/m5stack_airq/manifest.yaml |
Adds the fixed SPI bus. |
esphome_device_builder/definitions/boards/levoit_core_300s/manifest.yaml |
Adds UART wiring and reservations. |
esphome_device_builder/definitions/boards/kmp_prodino_esp32ex/manifest.yaml |
Adds UART and dependent Modbus presets. |
esphome_device_builder/definitions/boards/kincony_n60/manifest.yaml |
Adds the fixed I2C bus. |
esphome_device_builder/definitions/boards/kincony_n30/manifest.yaml |
Adds the fixed I2C bus. |
esphome_device_builder/definitions/boards/kincony_n20/manifest.yaml |
Adds the fixed I2C bus. |
esphome_device_builder/definitions/boards/kincony_n10/manifest.yaml |
Adds the fixed I2C bus. |
esphome_device_builder/definitions/boards/kincony_kc868_a6/manifest.yaml |
Adds RS485, RS232, and SPI presets. |
esphome_device_builder/definitions/boards/kincony_kc868_a16/manifest.yaml |
Adds the RS485 UART preset. |
esphome_device_builder/definitions/boards/kincony_dm16/manifest.yaml |
Adds the DAC UART preset. |
esphome_device_builder/definitions/boards/kincony_co16/manifest.yaml |
Adds the fixed I2C bus. |
esphome_device_builder/definitions/boards/homemaster_microplc/manifest.yaml |
Adds UART and I2C presets. |
esphome_device_builder/definitions/boards/gl_inet_gl_s10/manifest.yaml |
Adds the fixed I2C bus. |
esphome_device_builder/definitions/boards/gelidus_research_presence_sensor_1/manifest.yaml |
Adds the LD2420 UART preset. |
esphome_device_builder/definitions/boards/gelidus_research_energy_collector_1/manifest.yaml |
Adds the Modbus-client UART preset. |
esphome_device_builder/definitions/boards/geekmagic_ultra/manifest.yaml |
Adds the hardware SPI preset. |
esphome_device_builder/definitions/boards/feit_plug3_wifi_wp_2_n/manifest.yaml |
Adds the fixed UART bus. |
esphome_device_builder/definitions/boards/ezaiot_xyzoo_thermostat/manifest.yaml |
Adds the MCU UART preset. |
esphome_device_builder/definitions/boards/esp32_smartplug_rowi_au/manifest.yaml |
Adds the fixed I2C bus. |
esphome_device_builder/definitions/boards/esp32_s3_4_0_inch_smart_display/manifest.yaml |
Adds the fixed I2C bus. |
esphome_device_builder/definitions/boards/esp32_relay_x4_modbus_v1_3/manifest.yaml |
Adds UART and flow-control wiring. |
esphome_device_builder/definitions/boards/esp32_multiboard/manifest.yaml |
Adds I2C, UART, and SPI presets. |
esphome_device_builder/definitions/boards/citilab_ed1/manifest.yaml |
Adds SPI and I2C presets. |
esphome_device_builder/definitions/boards/athom_smart_plug_pg01v2_eu16a/manifest.yaml |
Adds the CSE7766 UART preset. |
esphome_device_builder/definitions/boards/athom_human_presence_sensor/manifest.yaml |
Adds the fixed UART bus. |
esphome_device_builder/definitions/boards/alfawise_sj_7/manifest.yaml |
Adds the controller UART preset. |
esphome_device_builder/definitions/board_bodies/wion_50050_indoor_wifi_plug.json |
Expands pins while retaining reservations. |
esphome_device_builder/definitions/board_bodies/tuya_generic_wifi_ir_remote_control.json |
Adds the LibreTiny pinout. |
esphome_device_builder/definitions/board_bodies/tinxy_4n_fan_regulator.json |
Adds UART, setup bundle, and expanded pins. |
esphome_device_builder/definitions/board_bodies/szmdlx_ir_hub.json |
Expands pins while retaining reservations. |
esphome_device_builder/definitions/board_bodies/sonoff_sv.json |
Expands pins while retaining reservations. |
esphome_device_builder/definitions/board_bodies/sonoff_pow_r2.json |
Expands pins while retaining reservations. |
esphome_device_builder/definitions/board_bodies/smartpoint_wifi_smart_remote_controller.json |
Expands pins while retaining reservations. |
esphome_device_builder/definitions/board_bodies/shelly_vintage_a19.json |
Expands pins while retaining reservations. |
esphome_device_builder/definitions/board_bodies/qiachip_smart_switch.json |
Adds UART, setup bundle, and expanded pins. |
esphome_device_builder/definitions/board_bodies/magichome_zj_wfmn_c_single_color.json |
Expands pins while retaining reservations. |
esphome_device_builder/definitions/board_bodies/esp_12f_relay_x1.json |
Expands pins while retaining reservations. |
esphome_device_builder/definitions/board_bodies/avatto_s06_ir_remote_no_temp_no_humidity_new_version.json |
Adds the LibreTiny pinout. |
esphome_device_builder/definitions/board_bodies/antsig_grid_connect_smart_ir_universal_remote.json |
Adds the LibreTiny pinout. |
Review effort: Balanced
|
ESPHome Bot (@esphbot) review |
Code Review
PR Review — Offer free pins on imported boards and keep their unconsumed busesApprove. This fixes #2992: imported boards now get a full pinout with the device's own pins marked occupied, and the last round of review feedback is all addressed. What works well:
No blocking issues remain. Most of the regenerated board bodies were omitted from the diff I was given, so I did not review them line by line. I checked the samples that were included, and they follow the expected overlay pattern. Checklist
Automated review by Kōan (Claude) |
ESPHome Bot (esphbot)
left a comment
There was a problem hiding this comment.
Tip
No blocking issues found — ready to merge.


What does this implement/fix?
Boards imported from devices.esphome.io only listed the pins their featured components use, so the pin picker had nothing free to offer; on the M5StickC PLUS every SDA/SCL choice showed Unavailable and the onboard IMU could not be set up.
i2corspibus whose only consumer is uncatalogued (the PLUS'sbus_afeeds the external axp192), so 20 manifests gain their bus; a loneuartstays out since it would sit on the logger's UART.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.