Drop the now-inlined pio_options module

This commit is contained in:
J. Nick Koston
2026-08-21 20:55:58 -05:00
parent 17f718e8c9
commit 8b9f5503df
-28
View File
@@ -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,
)