mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Mock out zeroconf in homekit_controller tests (#56307)
This commit is contained in:
parent
70eb519f76
commit
8341ae12d3
@ -27,3 +27,8 @@ def controller(hass):
|
|||||||
instance = FakeController()
|
instance = FakeController()
|
||||||
with unittest.mock.patch("aiohomekit.Controller", return_value=instance):
|
with unittest.mock.patch("aiohomekit.Controller", return_value=instance):
|
||||||
yield instance
|
yield instance
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(autouse=True)
|
||||||
|
def homekit_mock_zeroconf(mock_zeroconf):
|
||||||
|
"""Mock zeroconf in all homekit tests."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user