Use the shared zeroconf instance when attempting to create another Zeroconf instance (#38744)
This commit is contained in:
1 parent
34cb12d3c9
commit
444df4a7d2
8 files changed
+187
-17
No files matched your search
@@ -1,8 +1,15 @@
|
||||
"""Fixtures for component testing."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.components import zeroconf
|
||||
|
||||
from tests.async_mock import patch
|
||||
|
||||
zeroconf.orig_install_multiple_zeroconf_catcher = (
|
||||
zeroconf.install_multiple_zeroconf_catcher
|
||||
)
|
||||
zeroconf.install_multiple_zeroconf_catcher = lambda zc: None
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def prevent_io():
|
||||
|
||||
Reference in new issue
Block a user