Use async zeroconf registration functions (#50168)
This commit is contained in:
parent
e616583bad
commit
909a20b36d
4 changed files with 44 additions and 18 deletions
|
@ -14,7 +14,7 @@ from tests.components.light.conftest import mock_light_profiles # noqa: F401
|
|||
@pytest.fixture(autouse=True)
|
||||
def mock_zeroconf():
|
||||
"""Mock zeroconf."""
|
||||
with mock.patch("homeassistant.components.zeroconf.HaZeroconf") as mock_zc:
|
||||
with mock.patch("homeassistant.components.zeroconf.models.HaZeroconf") as mock_zc:
|
||||
yield mock_zc.return_value
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue