Fix insteon test (#126404)

* Fix insteon test

* Increase time

* More sleep
This commit is contained in:
G Johansson 2024-09-22 03:04:29 +02:00 committed by GitHub
parent 5db3c6e47b
commit f102d99004
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -406,6 +406,7 @@ async def test_get_broken_links(
await devices.async_load()
aldb_data = json.loads(load_fixture("insteon/aldb_data.json"))
devices.fill_aldb("33.33.33", aldb_data)
await asyncio.sleep(1)
with patch.object(insteon.api.config, "devices", devices):
await ws_client.send_json({ID: 2, TYPE: "insteon/config/get_broken_links"})
msg = await ws_client.receive_json()

View File

@ -1,5 +1,6 @@
"""Test the Insteon properties APIs."""
import asyncio
import json
from typing import Any
from unittest.mock import AsyncMock, patch
@ -156,6 +157,7 @@ async def test_get_read_only_properties(
msg = await ws_client.receive_json()
assert msg["success"]
assert len(msg["result"]["properties"]) == 15
await asyncio.sleep(1)
async def test_get_unknown_properties(