From 82b20313b0817b00754369d2d9c14a0515e6589a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 22 Aug 2026 19:14:32 -0500 Subject: [PATCH] Export the consumed platformio_options set so the ignored-option warning cannot drift --- esphome/core/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esphome/core/config.py b/esphome/core/config.py index b1b234adde..6f9b271dca 100644 --- a/esphome/core/config.py +++ b/esphome/core/config.py @@ -559,6 +559,10 @@ def _add_library_str(lib: str) -> None: # in this chain) will honor; its ignored-option warning will consume the same # list so the two cannot drift NATIVE_ARDUINO_PIO_OPTIONS = frozenset({"board_build.f_cpu", "board_build.ldscript"}) +# The full set that survives into CORE.platformio_options under the native +# arduino toolchain: lib_ignore is the only specially-translated key below +# that is stored rather than translated away +NATIVE_ARDUINO_CONSUMED_PIO_OPTIONS = NATIVE_ARDUINO_PIO_OPTIONS | {"lib_ignore"} @coroutine_with_priority(CoroPriority.FINAL)