1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Add progress syncing from child jobs (#6207)

* Add progress syncing from child jobs

* Fix pylint issue

* Set initial progress from parent and end at 100
This commit is contained in:
Mike Degatano
2025-09-30 14:52:16 -04:00
committed by GitHub
parent ab3b147876
commit 64f94a159c
6 changed files with 215 additions and 35 deletions

View File

@@ -152,7 +152,7 @@ async def test_jobs_tree_representation(api_client: TestClient, coresys: CoreSys
"name": "test_jobs_tree_alt",
"reference": None,
"uuid": ANY,
"progress": 0,
"progress": 100,
"stage": "end",
"done": True,
"child_jobs": [],
@@ -282,7 +282,7 @@ async def test_jobs_sorted(api_client: TestClient, coresys: CoreSys):
"name": "test_jobs_sorted_2",
"reference": None,
"uuid": ANY,
"progress": 0,
"progress": 100,
"stage": None,
"done": True,
"errors": [],
@@ -294,7 +294,7 @@ async def test_jobs_sorted(api_client: TestClient, coresys: CoreSys):
"name": "test_jobs_sorted_1",
"reference": None,
"uuid": ANY,
"progress": 0,
"progress": 100,
"stage": None,
"done": True,
"errors": [],
@@ -305,7 +305,7 @@ async def test_jobs_sorted(api_client: TestClient, coresys: CoreSys):
"name": "test_jobs_sorted_inner_1",
"reference": None,
"uuid": ANY,
"progress": 0,
"progress": 100,
"stage": None,
"done": True,
"errors": [],
@@ -317,7 +317,7 @@ async def test_jobs_sorted(api_client: TestClient, coresys: CoreSys):
"name": "test_jobs_sorted_inner_2",
"reference": None,
"uuid": ANY,
"progress": 0,
"progress": 100,
"stage": None,
"done": True,
"errors": [],