diff --git a/supervisor/api/supervisor.py b/supervisor/api/supervisor.py index 907b11e2f..c17037e1f 100644 --- a/supervisor/api/supervisor.py +++ b/supervisor/api/supervisor.py @@ -230,9 +230,9 @@ class APISupervisor(CoreSysAttributes): await asyncio.shield(self.sys_supervisor.update(version)) @api_process - def reload(self, request: web.Request) -> Awaitable: + async def reload(self, request: web.Request) -> None: """Reload add-ons, configuration, etc.""" - return asyncio.gather( + await asyncio.gather( asyncio.shield(self.sys_updater.reload()), asyncio.shield(self.sys_homeassistant.secrets.reload()), asyncio.shield(self.sys_resolution.evaluate.evaluate_system()), diff --git a/tests/api/test_supervisor.py b/tests/api/test_supervisor.py index 65993b2c5..b2a5634fa 100644 --- a/tests/api/test_supervisor.py +++ b/tests/api/test_supervisor.py @@ -235,6 +235,7 @@ async def test_api_supervisor_reload(api_client: TestClient): """Test supervisor reload.""" resp = await api_client.post("/supervisor/reload") assert resp.status == 200 + assert await resp.json() == {"result": "ok", "data": {}} async def test_api_supervisor_options_timezone(