From 8b9f5503df4ac43e0f4a3319165111025f51039d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 21 Aug 2026 20:55:58 -0500 Subject: [PATCH] Drop the now-inlined pio_options module --- esphome/build_helpers/pio_options.py | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 esphome/build_helpers/pio_options.py diff --git a/esphome/build_helpers/pio_options.py b/esphome/build_helpers/pio_options.py deleted file mode 100644 index cf0d6f1979..0000000000 --- a/esphome/build_helpers/pio_options.py +++ /dev/null @@ -1,28 +0,0 @@ -"""Warn about platformio options a native build backend drops.""" - -from __future__ import annotations - -import logging - -from esphome.core import CORE - -_LOGGER = logging.getLogger(__name__) - - -def warn_ignored_platformio_options(consumed: frozenset[str], toolchain: str) -> None: - """Warn for component-added platformio options the native build drops. - - YAML ``esphome: platformio_options:`` keys are warned about during code - generation and never reach ``CORE.platformio_options`` under a native - toolchain, so anything left here came from ``cg.add_platformio_option()`` - calls (e.g. an external component) and would be silently ignored. - ``consumed`` names the keys the backend honors. - """ - for key in sorted(CORE.platformio_options or {}): - if key not in consumed: - _LOGGER.warning( - "platformio_options->%s is ignored when building with the " - "native '%s' toolchain", - key, - toolchain, - )