mirror of
https://github.com/esphome/esphome.git
synced 2026-08-27 00:18:32 +00:00
Merge branch 'esp8266-native-ninja-emission' into esp8266-arduino-toolchain
This commit is contained in:
@@ -744,9 +744,9 @@ def write_project(paths: InstalledPaths, ccache: str | None) -> bool:
|
||||
config = _resolve_build_config(flag_defines)
|
||||
esp8266_data = CORE.data[KEY_ESP8266]
|
||||
board = esp8266_data[KEY_BOARD]
|
||||
# The only in-tree rejection until the native-toolchain validator
|
||||
# (_validate_native_toolchain, final PR of the chain) gates boards at
|
||||
# config time; CONF_BOARD itself is a free-form string
|
||||
# Config validation (_validate_native_toolchain) already gates boards;
|
||||
# kept as defense-in-depth for direct calls, since CONF_BOARD itself is
|
||||
# a free-form string
|
||||
if board not in ESP8266_BOARD_BUILD:
|
||||
raise EsphomeError(f"Board '{board}' is not supported by the native toolchain")
|
||||
board_build = ESP8266_BOARD_BUILD[board]
|
||||
|
||||
Reference in New Issue
Block a user