1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05:12:21 +01:00

Suppress spurious volatile and Python syntax warnings during builds (#9488)

This commit is contained in:
J. Nick Koston
2025-07-13 21:47:52 -10:00
committed by GitHub
parent 873f4125c5
commit e7d819a656
2 changed files with 21 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ def run_platformio_cli(*args, **kwargs) -> str | int:
os.environ.setdefault(
"PLATFORMIO_LIBDEPS_DIR", os.path.abspath(CORE.relative_piolibdeps_path())
)
# Suppress Python syntax warnings from third-party scripts during compilation
os.environ.setdefault("PYTHONWARNINGS", "ignore::SyntaxWarning")
cmd = ["platformio"] + list(args)
if not CORE.verbose: