home-assistant: rename component update script
This commit is contained in:
parent
ffbbdb8b9d
commit
991b36dcbe
@ -525,7 +525,7 @@ let
|
|||||||
# Ensure that we are using a consistent package set
|
# Ensure that we are using a consistent package set
|
||||||
extraBuildInputs = extraPackages python.pkgs;
|
extraBuildInputs = extraPackages python.pkgs;
|
||||||
|
|
||||||
# Don't forget to run parse-requirements.py after updating
|
# Don't forget to run update-component-packages.py after updating
|
||||||
hassVersion = "2024.4.3";
|
hassVersion = "2024.4.3";
|
||||||
|
|
||||||
in python.pkgs.buildPythonApplication rec {
|
in python.pkgs.buildPythonApplication rec {
|
||||||
|
@ -268,7 +268,7 @@ def main() -> None:
|
|||||||
build_inputs[component] = (attr_paths, extra_attrs, missing_reqs)
|
build_inputs[component] = (attr_paths, extra_attrs, missing_reqs)
|
||||||
|
|
||||||
with open(os.path.dirname(sys.argv[0]) + "/component-packages.nix", "w") as f:
|
with open(os.path.dirname(sys.argv[0]) + "/component-packages.nix", "w") as f:
|
||||||
f.write("# Generated by parse-requirements.py\n")
|
f.write("# Generated by update-component-packages.py\n")
|
||||||
f.write("# Do not edit!\n\n")
|
f.write("# Do not edit!\n\n")
|
||||||
f.write("{\n")
|
f.write("{\n")
|
||||||
f.write(f' version = "{version}";\n')
|
f.write(f' version = "{version}";\n')
|
@ -222,7 +222,7 @@ class HomeAssistant:
|
|||||||
|
|
||||||
async def update_components(self):
|
async def update_components(self):
|
||||||
await run_async([
|
await run_async([
|
||||||
f"{ROOT}/pkgs/servers/home-assistant/parse-requirements.py"
|
f"{ROOT}/pkgs/servers/home-assistant/update-component-packages.py"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user