Point the board-check comment at the validator that now exists

This commit is contained in:
J. Nick Koston
2026-08-22 21:18:58 -05:00
parent aa5700d150
commit 0f3ac3b0e3
+3 -3
View File
@@ -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]