[core] Dispatch controller updates through generated direct calls (#19588)

This commit is contained in:
J. Nick Koston
2026-09-24 17:24:10 +00:00
committed by GitHub
parent 9df7e825d3
commit 211fd3ce54
23 changed files with 178 additions and 181 deletions
+2 -4
View File
@@ -429,11 +429,9 @@ def build_all_include(header_files: list[str] | None = None) -> None:
if line
]
from esphome.writer import ENTITY_TYPES_H_TARGET
from esphome.writer import ESPHOME_H_EXCLUDE
# X-macro files are included multiple times with different macro definitions
# and must not be included bare in the all-include header
exclude = {ENTITY_TYPES_H_TARGET}
exclude = {path.as_posix() for path in ESPHOME_H_EXCLUDE}
headers = [f'#include "{h}"' for h in header_files if h not in exclude]
headers.sort()
headers.append("")