From 6aa5540ff8a06cd5707db91d7c7ff6c1d1eddf57 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 25 Aug 2026 20:40:20 -0500 Subject: [PATCH] Cite esphome#8693 for the intended Arduino.h visibility --- esphome/build_helpers/pch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/esphome/build_helpers/pch.py b/esphome/build_helpers/pch.py index b3ce7a759f..356befc7e2 100644 --- a/esphome/build_helpers/pch.py +++ b/esphome/build_helpers/pch.py @@ -3,8 +3,9 @@ Safe by construction when the prefix header mirrors what the TUs already include first (ESP8266); a backend may instead inject a curated set of self-contained core headers (ESP-IDF). User sources from ``esphome: -includes:`` also receive the prefix, so they now see defines.h (and -Arduino.h on Arduino platforms) even when they did not include it. +includes:`` also receive the prefix; the Arduino.h visibility this gives +them on Arduino platforms is intended behavior (see esphome#8693, which +made defines.h -> macros.h include it everywhere). """ from __future__ import annotations