forked from home-assistant/core
Mock out zeroconf in homekit_controller tests (#56307)
This commit is contained in:
@@ -27,3 +27,8 @@ def controller(hass):
|
||||
instance = FakeController()
|
||||
with unittest.mock.patch("aiohomekit.Controller", return_value=instance):
|
||||
yield instance
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def homekit_mock_zeroconf(mock_zeroconf):
|
||||
"""Mock zeroconf in all homekit tests."""
|
||||
|
Reference in New Issue
Block a user