Remove zeroconf from ssdp after deps (#111326)

* Remove zeroconf from ssdp after deps

This was added in #36277 but is no longer needed since
we setup discovery integrations ahead of time to ensure
their deps are updated before other integrations can load
them

* adjust test
This commit is contained in:
J. Nick Koston 2024-02-26 18:57:41 -10:00 committed by GitHub
parent de48ad5931
commit 587854fd59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -1,7 +1,6 @@
{
"domain": "ssdp",
"name": "Simple Service Discovery Protocol (SSDP)",
"after_dependencies": ["zeroconf"],
"codeowners": [],
"dependencies": ["network"],
"documentation": "https://www.home-assistant.io/integrations/ssdp",

View File

@ -565,15 +565,13 @@ async def test_discovery_requirements_ssdp(hass: HomeAssistant) -> None:
) as mock_process:
await async_get_integration_with_requirements(hass, "ssdp_comp")
assert len(mock_process.mock_calls) == 5
assert len(mock_process.mock_calls) == 4
assert mock_process.mock_calls[0][1][1] == ssdp.requirements
# Ensure zeroconf is a dep for ssdp
assert {
mock_process.mock_calls[1][1][0],
mock_process.mock_calls[2][1][0],
mock_process.mock_calls[3][1][0],
mock_process.mock_calls[4][1][0],
} == {"http", "network", "recorder", "zeroconf"}
} == {"http", "network", "recorder"}
@pytest.mark.parametrize(