1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Fix flakey tests (#8914)

This commit is contained in:
J. Nick Koston
2025-05-26 23:20:14 -05:00
committed by GitHub
parent 4ac433fddb
commit caf9930ff9
3 changed files with 27 additions and 1 deletions

View File

@@ -53,6 +53,8 @@ async def dashboard() -> DashboardTestHelper:
assert DASHBOARD.settings.on_ha_addon is True
assert DASHBOARD.settings.using_auth is False
task = asyncio.create_task(DASHBOARD.async_run())
# Wait for initial device loading to complete
await DASHBOARD.entries.async_request_update_entries()
client = AsyncHTTPClient()
io_loop = IOLoop(make_current=False)
yield DashboardTestHelper(io_loop, client, port)