Break apart zeroconf integration to prepare for WebSocket API (#143490)
This commit is contained in:
@@ -1346,7 +1346,10 @@ def mock_zeroconf() -> Generator[MagicMock]:
|
||||
|
||||
with (
|
||||
patch("homeassistant.components.zeroconf.HaZeroconf", autospec=True) as mock_zc,
|
||||
patch("homeassistant.components.zeroconf.AsyncServiceBrowser", autospec=True),
|
||||
patch(
|
||||
"homeassistant.components.zeroconf.discovery.AsyncServiceBrowser",
|
||||
autospec=True,
|
||||
),
|
||||
):
|
||||
zc = mock_zc.return_value
|
||||
# DNSCache has strong Cython type checks, and MagicMock does not work
|
||||
|
||||
Reference in New Issue
Block a user