1
0
mirror of https://github.com/esphome/esphome.git synced 2024-10-07 11:20:58 +01:00

Fix version.h file (#630)

* Fix version.h file

* Lint
This commit is contained in:
Otto Winter 2019-06-14 12:53:02 +02:00
parent c9ab454c3c
commit 11d9c203c1
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -315,7 +315,7 @@ def copy_src_tree():
continue continue
# Transform path to target path name # Transform path to target path name
target = os.path.relpath(path, CORE.relative_src_path()).replace(os.path.sep, '/') target = os.path.relpath(path, CORE.relative_src_path()).replace(os.path.sep, '/')
if target == DEFINES_H_TARGET: if target in (DEFINES_H_TARGET, VERSION_H_TARGET):
# Ignore defines.h, will be dealt with later # Ignore defines.h, will be dealt with later
continue continue
if target not in source_files_copy: if target not in source_files_copy:
@ -341,7 +341,7 @@ def copy_src_tree():
write_file_if_changed(ESPHOME_H_FORMAT.format(include_s), write_file_if_changed(ESPHOME_H_FORMAT.format(include_s),
CORE.relative_src_path('esphome.h')) CORE.relative_src_path('esphome.h'))
write_file_if_changed(VERSION_H_FORMAT.format(__version__), write_file_if_changed(VERSION_H_FORMAT.format(__version__),
CORE.relative_src_path('esphome' 'core', 'version.h')) CORE.relative_src_path('esphome', 'core', 'version.h'))
def generate_defines_h(): def generate_defines_h():