mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
[rp2] Preserve RP2040_BOARD_PINS / RP2040_BASE_PINS aliases for external imports
The ``_AliasFinder`` routes legacy ``from esphome.components.rp2040 import boards`` to the canonical rp2 module, but external custom components and tooling (device-builder among them) also reach for the legacy symbol names ``RP2040_BOARD_PINS`` / ``RP2040_BASE_PINS``. Expose them as deprecation-documented aliases of ``RP2_BOARD_PINS`` / ``RP2_BASE_PINS`` so downstream board-pin lookups keep working. Scheduled for removal in 2027.7.0.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Auto-generated by generate_boards.py — do not edit manually
|
||||
# To regenerate: python esphome/components/rp2040/generate_boards.py <arduino-pico-path>
|
||||
# To regenerate: python esphome/components/rp2/generate_boards.py <arduino-pico-path>
|
||||
|
||||
# arduino-pico maps pins >= {{ cyw43_gpio_offset }} to CYW43 wireless chip GPIOs
|
||||
CYW43_GPIO_OFFSET = {{ cyw43_gpio_offset }}
|
||||
@@ -23,3 +23,10 @@ BOARDS = {
|
||||
},
|
||||
{%- endfor %}
|
||||
}
|
||||
|
||||
# Deprecated: use RP2_BASE_PINS / RP2_BOARD_PINS instead. Kept as back-compat
|
||||
# aliases so external custom components / tooling that imported the legacy
|
||||
# names via the ``rp2040`` package alias keep working.
|
||||
# Scheduled for removal in 2027.7.0.
|
||||
RP2040_BASE_PINS = RP2_BASE_PINS
|
||||
RP2040_BOARD_PINS = RP2_BOARD_PINS
|
||||
|
||||
@@ -2299,3 +2299,10 @@ BOARDS = {
|
||||
"max_pin": 29,
|
||||
},
|
||||
}
|
||||
|
||||
# Deprecated: use RP2_BASE_PINS / RP2_BOARD_PINS instead. Kept as back-compat
|
||||
# aliases so external custom components / tooling that imported the legacy
|
||||
# names via the ``rp2040`` package alias keep working.
|
||||
# Scheduled for removal in 2027.7.0.
|
||||
RP2040_BASE_PINS = RP2_BASE_PINS
|
||||
RP2040_BOARD_PINS = RP2_BOARD_PINS
|
||||
|
||||
Reference in New Issue
Block a user