diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 6eda51a..b0bf8a1 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -40,6 +40,6 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: { python-version: "3.13" } - - run: pip install pytest voluptuous pytest-homeassistant-custom-component + - run: pip install pytest voluptuous pytest-homeassistant-custom-component home-assistant-frontend - name: Backend unit tests (pure + HA harness) run: python -m pytest tests_backend/ -q diff --git a/tests_backend/test_ha_websocket.py b/tests_backend/test_ha_websocket.py index f087c48..917c77e 100644 --- a/tests_backend/test_ha_websocket.py +++ b/tests_backend/test_ha_websocket.py @@ -69,10 +69,10 @@ async def test_config_rev_conflict(hass: HomeAssistant, hass_ws_client: WebSocke async def test_not_ready_without_entry(hass: HomeAssistant, hass_ws_client: WebSocketGenerator) -> None: """WS commands answer not_ready when the integration has no loaded entry.""" - # register commands without setting up an entry - from custom_components.houseplan import async_setup + # register only the WS commands, without an entry + from custom_components.houseplan import websocket_api as hp_ws - assert await async_setup(hass, {}) + hp_ws.async_register(hass) client = await hass_ws_client(hass) await client.send_json_auto_id({"type": "houseplan/layout/get"}) resp = await client.receive_json()