Allow custom integrations to support application_credentials platform (#71129)

This commit is contained in:
Raman Gupta 2022-05-01 19:26:22 -04:00 committed by GitHub
parent d8ee9c1922
commit ae01ec02e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 66 additions and 10 deletions

View file

@ -615,8 +615,7 @@ async def test_websocket_integration_list(ws_client: ClientFixture):
"""Test websocket integration list command."""
client = await ws_client()
with patch(
"homeassistant.components.application_credentials.APPLICATION_CREDENTIALS",
["example1", "example2"],
"homeassistant.loader.APPLICATION_CREDENTIALS", ["example1", "example2"]
):
assert await client.cmd_result("config") == {
"domains": ["example1", "example2"]