From 49fd95d67209aad625780a60510297234aa6d8a3 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 9 Apr 2026 14:18:58 -1000 Subject: [PATCH] [core] Add .inc to SOURCE_FILE_EXTENSIONS PlatformIO only copies files with extensions listed in SOURCE_FILE_EXTENSIONS to the build directory. Add .inc so that X-macro include files (entity_types.inc) are available during compilation. --- esphome/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/const.py b/esphome/const.py index c2bf86d532..58a997352f 100644 --- a/esphome/const.py +++ b/esphome/const.py @@ -102,7 +102,7 @@ PLATFORM_RP2040 = Platform.RP2040 PLATFORM_RTL87XX = Platform.RTL87XX -SOURCE_FILE_EXTENSIONS = {".cpp", ".hpp", ".h", ".c", ".tcc", ".ino"} +SOURCE_FILE_EXTENSIONS = {".cpp", ".hpp", ".h", ".c", ".tcc", ".ino", ".inc"} HEADER_FILE_EXTENSIONS = {".h", ".hpp", ".tcc"} SECRETS_FILES = ("secrets.yaml", "secrets.yml")