Remove recorder from websocket_api after dependencies (#122422)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Erik Montnemery 2024-07-22 23:50:05 +02:00 committed by GitHub
parent 42716723e6
commit 9b2118e556
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,6 @@
{ {
"domain": "websocket_api", "domain": "websocket_api",
"name": "Home Assistant WebSocket API", "name": "Home Assistant WebSocket API",
"after_dependencies": ["recorder"],
"codeowners": ["@home-assistant/core"], "codeowners": ["@home-assistant/core"],
"dependencies": ["http"], "dependencies": ["http"],
"documentation": "https://www.home-assistant.io/integrations/websocket_api", "documentation": "https://www.home-assistant.io/integrations/websocket_api",

View File

@ -602,12 +602,12 @@ async def test_discovery_requirements_ssdp(hass: HomeAssistant) -> None:
) as mock_process: ) as mock_process:
await async_get_integration_with_requirements(hass, "ssdp_comp") await async_get_integration_with_requirements(hass, "ssdp_comp")
assert len(mock_process.mock_calls) == 3 assert len(mock_process.mock_calls) == 2
assert mock_process.mock_calls[0][1][1] == ssdp.requirements assert mock_process.mock_calls[0][1][1] == ssdp.requirements
assert { assert {
mock_process.mock_calls[0][1][0],
mock_process.mock_calls[1][1][0], mock_process.mock_calls[1][1][0],
mock_process.mock_calls[2][1][0], } == {"network", "ssdp"}
} == {"network", "recorder"}
@pytest.mark.parametrize( @pytest.mark.parametrize(
@ -631,7 +631,7 @@ async def test_discovery_requirements_zeroconf(
) as mock_process: ) as mock_process:
await async_get_integration_with_requirements(hass, "comp") await async_get_integration_with_requirements(hass, "comp")
assert len(mock_process.mock_calls) == 3 assert len(mock_process.mock_calls) == 2
assert mock_process.mock_calls[0][1][1] == zeroconf.requirements assert mock_process.mock_calls[0][1][1] == zeroconf.requirements