Fix flaky websocket_api test (#95786)

This commit is contained in:
Erik Montnemery 2023-07-03 18:53:21 +02:00 committed by GitHub
parent 5712d12c42
commit 5f9da06e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1739,6 +1739,7 @@ async def test_execute_script_complex_response(
hass: HomeAssistant, hass_ws_client: WebSocketGenerator hass: HomeAssistant, hass_ws_client: WebSocketGenerator
) -> None: ) -> None:
"""Test testing a condition.""" """Test testing a condition."""
await async_setup_component(hass, "homeassistant", {})
await async_setup_component(hass, "calendar", {"calendar": {"platform": "demo"}}) await async_setup_component(hass, "calendar", {"calendar": {"platform": "demo"}})
await hass.async_block_till_done() await hass.async_block_till_done()
ws_client = await hass_ws_client(hass) ws_client = await hass_ws_client(hass)