[esp32][core] Restore ESP-IDF version on logs/upload fast path and clean build on framework change (#16770)

This commit is contained in:
Jonathan Swoboda
2026-06-04 09:46:01 +12:00
committed by GitHub
parent 78d8a93fff
commit 74a1ff9fc7
5 changed files with 126 additions and 8 deletions
@@ -148,3 +148,12 @@ def test_get_idedata_regenerates_on_corrupted_cache(setup_core: Path) -> None:
mock_transform.assert_called_once()
assert result == {"cxx_path": "regen"}
def test_get_core_framework_version_from_core_data():
"""The version is read from CORE.data when validation populated it."""
from esphome.components.esp32.const import KEY_ESP32, KEY_IDF_VERSION
import esphome.config_validation as cv
CORE.data = {KEY_ESP32: {KEY_IDF_VERSION: cv.Version(5, 5, 4)}}
assert toolchain._get_core_framework_version() == "5.5.4"