Fix thread diagnostics loading blocking the event loop (#89307)
* Fix thread diagnostics loading blocking the event loop * patch target
This commit is contained in:
parent
099f16f6b8
commit
bde40cde48
2 changed files with 56 additions and 46 deletions
|
@ -133,9 +133,7 @@ class MockNeighbour:
|
|||
@pytest.fixture
|
||||
def ndb() -> Mock:
|
||||
"""Prevent NDB poking the OS route tables."""
|
||||
with patch(
|
||||
"homeassistant.components.thread.diagnostics.NDB"
|
||||
) as ndb, ndb() as instance:
|
||||
with patch("pyroute2.NDB") as ndb, ndb() as instance:
|
||||
instance.neighbours = []
|
||||
instance.routes = []
|
||||
yield instance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue