1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Make home assistant discoverable via UPnP/SSDP (#79820)

This commit is contained in:
Steven Looman
2022-10-15 20:00:46 +02:00
committed by GitHub
parent d12cbab6c4
commit 731f618028
20 changed files with 290 additions and 34 deletions

View File

@@ -12,7 +12,9 @@ from tests.components.blueprint.conftest import stub_blueprint_populate # noqa:
@pytest.fixture(autouse=True)
def mock_ssdp():
"""Mock ssdp."""
with patch("homeassistant.components.ssdp.Scanner.async_scan"):
with patch("homeassistant.components.ssdp.Scanner.async_scan"), patch(
"homeassistant.components.ssdp.Server.async_start"
), patch("homeassistant.components.ssdp.Server.async_stop"):
yield