Merge branch 'esp8266-native-ninja-emission' into esp8266-arduino-toolchain

This commit is contained in:
J. Nick Koston
2026-08-20 13:37:23 -05:00
parent d3524db735
commit aa3c15d098
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -17,8 +17,8 @@ from dataclasses import dataclass, field
import logging
from pathlib import Path
from esphome.build_helpers.extra_script import apply_extra_script
from esphome.core import CORE, EsphomeError, Library
from esphome.platformio.extra_script import apply_extra_script
from esphome.platformio.library import (
DEFAULT_BUILD_INCLUDE_DIR,
DEFAULT_BUILD_SRC_FILTER,
@@ -210,7 +210,9 @@ def resolve_libraries(framework_path: Path) -> list[ArduinoLibrary]:
bundled.append(_bundled_library(framework_path, name))
def _emit(component: ConvertedLibrary) -> None:
apply_extra_script(component, "esp8266", pio_platform=ESP8266_PLATFORM)
apply_extra_script(
component, board_mcu="esp8266", pio_platform=ESP8266_PLATFORM
)
converted.append(
_library_info(
component.get_require_name(), component.source_dir, component.data
@@ -190,7 +190,7 @@ def test_resolve_libraries_external_and_bundled_deps(tmp_path: Path) -> None:
libs = component.resolve_libraries(framework)
mock_extra.assert_called_once_with(
converted, "esp8266", pio_platform="espressif8266"
converted, board_mcu="esp8266", pio_platform="espressif8266"
)
assert [lib.name for lib in libs] == [
"Wire",