mirror of
https://github.com/esphome/esphome.git
synced 2026-09-24 05:24:14 +00:00
[core] Use ENTITY_TYPES_H_TARGET constant for consistency
This commit is contained in:
+2
-1
@@ -171,6 +171,7 @@ VERSION_H_FORMAT = """\
|
||||
DEFINES_H_TARGET = "esphome/core/defines.h"
|
||||
VERSION_H_TARGET = "esphome/core/version.h"
|
||||
BUILD_INFO_DATA_H_TARGET = "esphome/core/build_info_data.h"
|
||||
ENTITY_TYPES_H_TARGET = "esphome/core/entity_types.h"
|
||||
ESPHOME_README_TXT = """
|
||||
THIS DIRECTORY IS AUTO-GENERATED, DO NOT MODIFY
|
||||
|
||||
@@ -198,7 +199,7 @@ def copy_src_tree():
|
||||
# Build #include list for esphome.h
|
||||
# X-macro files are included multiple times with different macro definitions
|
||||
# and must not be included bare in esphome.h
|
||||
esphome_h_exclude = {Path("esphome/core/entity_types.h")}
|
||||
esphome_h_exclude = {Path(ENTITY_TYPES_H_TARGET)}
|
||||
include_l = []
|
||||
for target, _ in source_files_l:
|
||||
if target.suffix in HEADER_FILE_EXTENSIONS and target not in esphome_h_exclude:
|
||||
|
||||
Reference in New Issue
Block a user