Skip to content

Commit d3e565b

Browse files
committed
test(e2e): restore HAOS running-state helper
1 parent 05c86df commit d3e565b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/src/e2e/haos_only/test_manage_addon_modes.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,21 @@ async def _wait_addon_state(
136136
await asyncio.sleep(_ADDON_RUNNING_POLL_S)
137137

138138

139+
async def _wait_addon_running(
140+
mcp_client: Any,
141+
slug: str,
142+
timeout: float = _ADDON_RUNNING_TIMEOUT_S,
143+
) -> None:
144+
"""Block until an app reaches ``started`` for sibling HAOS tests."""
145+
await _wait_addon_state(
146+
mcp_client,
147+
slug,
148+
frozenset({"started"}),
149+
failure_states=frozenset({"boot_fail", "error"}),
150+
timeout=timeout,
151+
)
152+
153+
139154
# ---------------------------------------------------------------------------
140155
# Config mode — boot / auto_update / watchdog round-trips
141156
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)