mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add support for integrations v2 (#78801)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -2014,3 +2014,20 @@ async def test_client_message_coalescing(hass, websocket_client, hass_admin_user
|
||||
hass.states.async_set("light.permitted", "on", {"color": "blue"})
|
||||
await websocket_client.close()
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
async def test_integration_descriptions(hass, hass_ws_client):
|
||||
"""Test we can get integration descriptions."""
|
||||
assert await async_setup_component(hass, "config", {})
|
||||
ws_client = await hass_ws_client(hass)
|
||||
|
||||
await ws_client.send_json(
|
||||
{
|
||||
"id": 1,
|
||||
"type": "integration/descriptions",
|
||||
}
|
||||
)
|
||||
response = await ws_client.receive_json()
|
||||
|
||||
assert response["success"]
|
||||
assert response["result"]
|
||||
|
||||
Reference in New Issue
Block a user