[rp2] Rename rp2040 platform to rp2 (#17145)

Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
This commit is contained in:
Jesse Hills
2026-07-07 08:20:24 +12:00
committed by GitHub
co-authored by Jonathan Swoboda
parent 9caf431740
commit cdd334284e
153 changed files with 1297 additions and 1062 deletions
+5 -2
View File
@@ -621,6 +621,9 @@ def convert_path_to_relative(abspath, current):
"esphome/components/web_server/__init__.py",
# const.py has absolute import in docstring example for external components
"esphome/components/esp8266/const.py",
# rp2040/__init__.py is the deprecation shim that documents the canonical
# rp2 module path and its own legacy import paths in docstrings/comments.
"esphome/components/rp2040/__init__.py",
],
)
def lint_relative_py_import(fname: Path, line, col, content):
@@ -650,13 +653,13 @@ def lint_relative_py_import(fname: Path, line, col, content):
"esphome/components/async_tcp/async_tcp.h",
"esphome/components/esp32/core.cpp",
"esphome/components/esp8266/core.cpp",
"esphome/components/rp2040/core.cpp",
"esphome/components/rp2/core.cpp",
"esphome/components/libretiny/core.cpp",
"esphome/components/host/core.cpp",
"esphome/components/zephyr/core.cpp",
"esphome/components/esp32/helpers.cpp",
"esphome/components/esp8266/helpers.cpp",
"esphome/components/rp2040/helpers.cpp",
"esphome/components/rp2/helpers.cpp",
"esphome/components/libretiny/helpers.cpp",
"esphome/components/host/helpers.cpp",
"esphome/components/zephyr/helpers.cpp",