mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 16:00:23 +00:00
[core] Dispatch controller updates through generated direct calls (#19588)
This commit is contained in:
+2
-4
@@ -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("")
|
||||
|
||||
Reference in New Issue
Block a user