mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Fix insteon test (#126404)
* Fix insteon test * Increase time * More sleep
This commit is contained in:
parent
5db3c6e47b
commit
f102d99004
@ -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()
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user