diff --git a/requirements_integration_tests.txt b/requirements_integration_tests.txt index cbc546a..8827730 100644 --- a/requirements_integration_tests.txt +++ b/requirements_integration_tests.txt @@ -1 +1 @@ -pytest-homeassistant-custom-component==0.13.375 +pytest-homeassistant==2026.11.2 \ No newline at end of file diff --git a/tests/integration_tests/conftest.py b/tests/integration_tests/conftest.py index decc368..74a491f 100644 --- a/tests/integration_tests/conftest.py +++ b/tests/integration_tests/conftest.py @@ -1,4 +1,4 @@ -"""pytest-homeassistant-custom-component conftest for SSH Command integration tests. +"""pytest-homeassistant conftest for SSH Command integration tests. This file wires the component (which lives at the repo root, not inside a conventional ``custom_components/`` sub-directory) into Home Assistant's custom @@ -54,8 +54,3 @@ def expected_lingering_timers() -> bool: """Allow any timers registered during setup to linger during teardown.""" return True - - -@pytest.fixture(autouse=True) -def auto_enable_custom_integrations(enable_custom_integrations): - """Enable custom integrations for every test in this package.""" diff --git a/tests/integration_tests/test_integration.py b/tests/integration_tests/test_integration.py index 43e030e..a06069a 100644 --- a/tests/integration_tests/test_integration.py +++ b/tests/integration_tests/test_integration.py @@ -1,6 +1,6 @@ """Integration tests for the SSH Command custom component. -These tests use ``pytest-homeassistant-custom-component`` which spins up a +These tests use ``pytest-homeassistant`` which spins up a real (in-process) Home Assistant instance per test. No hand-rolled mocks are needed for the HA side: the ``hass`` fixture IS a real ``HomeAssistant`` object, and services behave exactly as they do at runtime. @@ -22,7 +22,7 @@ from homeassistant.core import HomeAssistant from homeassistant.exceptions import ServiceValidationError from homeassistant.setup import async_setup_component -from pytest_homeassistant_custom_component.common import MockConfigEntry +from pytest_homeassistant.common import MockConfigEntry from asyncssh import HostKeyNotVerifiable, PermissionDenied