home-assistant: fix list spacing in component packages

This commit is contained in:
Martin Weinelt 2020-08-29 00:59:50 +02:00 committed by Jon
parent ed5c35626a
commit e06e699c84
2 changed files with 276 additions and 275 deletions

File diff suppressed because it is too large Load diff

View file

@ -177,9 +177,10 @@ def main() -> None:
f.write(" components = {\n")
for component, deps in build_inputs.items():
available, missing = deps
f.write(f' "{component}" = ps: with ps; [ ')
f.write(" ".join(available))
f.write("];")
f.write(f' "{component}" = ps: with ps; [')
if available:
f.write(" " + " ".join(available))
f.write(" ];")
if len(missing) > 0:
f.write(f" # missing inputs: {' '.join(missing)}")
f.write("\n")