1
0
mirror of https://github.com/esphome/esphome.git synced 2025-06-15 14:56:59 +02:00

Improve stability for a test that crashes intermittently in CI (#8699)

Co-authored-by: NP v/d Spek <github_mail@lumensoft.nl>
This commit is contained in:
DanielV 2025-05-19 00:01:30 +02:00 committed by GitHub
parent dbce54477a
commit 87a9dd18c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,6 +75,7 @@ async def test_devices_page(dashboard: DashboardTestHelper) -> None:
assert response.headers["content-type"] == "application/json"
json_data = json.loads(response.body.decode())
configured_devices = json_data["configured"]
assert len(configured_devices) != 0
first_device = configured_devices[0]
assert first_device["name"] == "pico"
assert first_device["configuration"] == "pico.yaml"