[espidf] Gate esp_idf_size --ng on IDF version (#16441)

This commit is contained in:
Jonathan Swoboda
2026-05-14 22:41:36 -04:00
committed by GitHub
parent a92b607754
commit 56983f414f
2 changed files with 14 additions and 3 deletions
+6 -1
View File
@@ -11,10 +11,12 @@ import pytest
from esphome.components.esp32 import (
KEY_COMPONENTS,
KEY_ESP32,
KEY_IDF_VERSION,
KEY_PATH,
KEY_REF,
KEY_REPO,
)
import esphome.config_validation as cv
from esphome.const import KEY_CORE
from esphome.core import CORE
@@ -24,7 +26,10 @@ def _reset_core(tmp_path: Path) -> None:
"""Give each test its own CORE.build_path and a clean esp32 data slot."""
CORE.build_path = str(tmp_path)
CORE.data.setdefault(KEY_CORE, {})
CORE.data[KEY_ESP32] = {KEY_COMPONENTS: {}}
CORE.data[KEY_ESP32] = {
KEY_COMPONENTS: {},
KEY_IDF_VERSION: cv.Version(5, 5, 4),
}
def _write_project_description(tmp_path: Path, components: dict[str, str]) -> None: