From 07b8bb53f8f312e80f4321e4c6d53bc1a3e06de8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 26 Aug 2026 21:17:29 -0500 Subject: [PATCH] TEMP: default to ESP-IDF 6.1.0 for CI testing of Log V2 Sets recommended/latest/dev to 6.1.0, maps it to the pioarduino prep_IDF6 platform branch, and points the PlatformIO framework source at a pioarduino style repack of espressif v6.1 hosted at bdraco/esp-idf, since pioarduino has not published 6.1 yet. The native toolchain needs no hosting; esphome-libs/esp-idf already has v6.1. Revert this commit and restore 5.5.5 before merge. --- esphome/components/esp32/__init__.py | 15 ++++++++++++--- platformio.ini | 5 +++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/esphome/components/esp32/__init__.py b/esphome/components/esp32/__init__.py index f24c49e0ca..4980d30ee4 100644 --- a/esphome/components/esp32/__init__.py +++ b/esphome/components/esp32/__init__.py @@ -855,6 +855,11 @@ def _format_framework_pio_espidf_version( ) -> str: # format the given espidf (https://github.com/pioarduino/esp-idf/releases) version to # a PIO platformio/framework-espidf value + # TEMP: pioarduino has no 6.1 package yet; use a repack of espressif v6.1 + # built the same way (shallow recursive clone, docs removed, package.json added). + # Remove before merge once pioarduino publishes v6.1. + if ver == cv.Version(6, 1, 0): + return "pioarduino/framework-espidf@https://github.com/bdraco/esp-idf/releases/download/v6.1.0/esp-idf-v6.1.0.tar.xz" if ver == cv.Version(5, 4, 3) or ver >= cv.Version(5, 5, 1): ext = "tar.xz" else: @@ -945,12 +950,16 @@ ARDUINO_IDF_VERSION_LOOKUP = { # The default/recommended esp-idf framework version # - https://github.com/espressif/esp-idf/releases ESP_IDF_FRAMEWORK_VERSION_LOOKUP = { - "recommended": cv.Version(5, 5, 5), - "latest": cv.Version(5, 5, 5), - "dev": cv.Version(5, 5, 5), + # TEMP: default to 6.1.0 for CI testing of Log V2; revert to 5.5.5 before merge + "recommended": cv.Version(6, 1, 0), + "latest": cv.Version(6, 1, 0), + "dev": cv.Version(6, 1, 0), } ESP_IDF_PLATFORM_VERSION_LOOKUP = { + cv.Version( + 6, 1, 0 + ): "https://github.com/pioarduino/platform-espressif32.git#prep_IDF6", cv.Version( 6, 0, 1 ): "https://github.com/pioarduino/platform-espressif32.git#prep_IDF6", diff --git a/platformio.ini b/platformio.ini index fcf7caa7c7..2db621d32c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -178,9 +178,10 @@ extra_scripts = ; This are common settings for the ESP32 (all variants) using IDF. [common:esp32-idf] extends = common:idf -platform = https://github.com/pioarduino/platform-espressif32/releases/download/55.03.311/platform-espressif32.zip +; TEMP: IDF 6.1 for Log V2 CI testing; revert to 55.03.311 / v5.5.5 before merge +platform = https://github.com/pioarduino/platform-espressif32.git#prep_IDF6 platform_packages = - pioarduino/framework-espidf@https://github.com/pioarduino/esp-idf/releases/download/v5.5.5/esp-idf-v5.5.5.tar.xz + pioarduino/framework-espidf@https://github.com/bdraco/esp-idf/releases/download/v6.1.0/esp-idf-v6.1.0.tar.xz framework = espidf lib_deps =