Zeroconf - replace library (#23835)
* Use aiozeroconf in preparation for new zeroconf discovery * Update requirements * Remove sleep * Make stop zeroconf a coroutine * Remove unused import * Fix aiozeroconf dependency in default_config tests
This commit is contained in:
1 parent
45085dd97f
commit
0d96095646
4 files changed
+28
-16
No files matched your search
@@ -5,7 +5,16 @@ from homeassistant.setup import async_setup_component
|
||||
|
||||
import pytest
|
||||
|
||||
from tests.common import MockDependency
|
||||
from tests.common import MockDependency, mock_coro
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def aiozeroconf_mock():
|
||||
"""Mock aiozeroconf."""
|
||||
with MockDependency('aiozeroconf') as mocked_zeroconf:
|
||||
mocked_zeroconf.Zeroconf.return_value.register_service \
|
||||
.return_value = mock_coro(True)
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
|
||||
Reference in new issue
Block a user