1
0

Add esphome_fork to dev container only (#41)

This commit is contained in:
Jesse Hills
2021-09-19 22:36:26 +12:00
committed by GitHub
Unverified
parent 8d6b093929
commit be03c6c8e7
8 changed files with 145 additions and 35 deletions

View File

@@ -39,7 +39,10 @@ def main(args):
json.dump(conf, f, indent=2, sort_keys=True)
for file_, conf_ in copyf.items():
copyfile(templ / file_, dir_ / file_)
if Path.exists(templ / channel.value / file_):
copyfile(templ / channel.value / file_, dir_ / file_)
else:
copyfile(templ / file_, dir_ / file_)
path = dir_ / "FILES ARE GENERATED DO NOT EDIT"
with open(path, "w") as f: