From deefcbcbe4f7aa8b92b791f63826d20d8b237834 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 20 Jan 2026 15:46:06 +0100 Subject: [PATCH] Remove stub_blueprint_populate test fixture (#161288) --- pylint/plugins/hass_enforce_type_hints.py | 1 - .../components/alarm_control_panel/test_condition.py | 5 ----- .../alarm_control_panel/test_device_action.py | 5 ----- .../alarm_control_panel/test_device_condition.py | 5 ----- .../alarm_control_panel/test_device_trigger.py | 5 ----- tests/components/alarm_control_panel/test_trigger.py | 5 ----- tests/components/arcam_fmj/test_device_trigger.py | 7 ------- tests/components/assist_satellite/test_condition.py | 5 ----- tests/components/assist_satellite/test_trigger.py | 5 ----- tests/components/automation/conftest.py | 8 -------- .../binary_sensor/test_device_condition.py | 5 ----- .../components/binary_sensor/test_device_trigger.py | 5 ----- tests/components/binary_sensor/test_trigger.py | 5 ----- tests/components/blueprint/common.py | 12 ------------ tests/components/blueprint/conftest.py | 8 -------- tests/components/button/test_trigger.py | 5 ----- tests/components/climate/test_device_action.py | 5 ----- tests/components/climate/test_device_condition.py | 5 ----- tests/components/climate/test_device_trigger.py | 5 ----- tests/components/climate/test_trigger.py | 5 ----- tests/components/config/test_automation.py | 6 ------ tests/components/config/test_device_registry.py | 5 ----- tests/components/config/test_script.py | 5 ----- tests/components/conftest.py | 11 ----------- tests/components/cover/test_device_action.py | 5 ----- tests/components/cover/test_device_condition.py | 5 ----- tests/components/cover/test_device_trigger.py | 5 ----- tests/components/deconz/test_device_trigger.py | 5 ----- tests/components/default_config/test_init.py | 5 ----- tests/components/demo/conftest.py | 5 ----- tests/components/device_automation/test_init.py | 5 ----- .../device_automation/test_toggle_entity.py | 5 ----- .../device_tracker/test_device_condition.py | 5 ----- .../components/device_tracker/test_device_trigger.py | 6 ------ tests/components/device_tracker/test_trigger.py | 5 ----- tests/components/emulated_hue/conftest.py | 8 -------- tests/components/fan/test_condition.py | 5 ----- tests/components/fan/test_device_action.py | 5 ----- tests/components/fan/test_device_condition.py | 5 ----- tests/components/fan/test_device_trigger.py | 5 ----- tests/components/fan/test_trigger.py | 5 ----- tests/components/filter/test_sensor.py | 5 ----- tests/components/geo_location/test_trigger.py | 5 ----- tests/components/homeassistant/triggers/conftest.py | 8 -------- .../homekit_controller/test_device_trigger.py | 6 ------ tests/components/humidifier/test_device_action.py | 5 ----- tests/components/humidifier/test_device_condition.py | 5 ----- tests/components/humidifier/test_device_trigger.py | 5 ----- tests/components/humidifier/test_trigger.py | 5 ----- tests/components/kodi/test_device_trigger.py | 5 ----- tests/components/lawn_mower/test_trigger.py | 5 ----- tests/components/light/test_condition.py | 5 ----- tests/components/light/test_device_action.py | 5 ----- tests/components/light/test_device_condition.py | 5 ----- tests/components/light/test_device_trigger.py | 5 ----- tests/components/light/test_trigger.py | 5 ----- tests/components/litejet/test_trigger.py | 8 -------- tests/components/lock/test_device_action.py | 5 ----- tests/components/lock/test_device_condition.py | 5 ----- tests/components/lock/test_device_trigger.py | 5 ----- tests/components/lock/test_trigger.py | 5 ----- tests/components/logbook/conftest.py | 8 -------- .../components/media_player/test_device_condition.py | 5 ----- tests/components/media_player/test_device_trigger.py | 5 ----- tests/components/media_player/test_trigger.py | 5 ----- tests/components/mqtt/test_device_trigger.py | 5 ----- tests/components/mqtt/test_trigger.py | 5 ----- tests/components/number/test_device_action.py | 5 ----- tests/components/person/test_trigger.py | 5 ----- tests/components/philips_js/test_device_trigger.py | 6 ------ tests/components/remote/test_device_action.py | 5 ----- tests/components/remote/test_device_condition.py | 5 ----- tests/components/remote/test_device_trigger.py | 5 ----- tests/components/scene/test_trigger.py | 5 ----- tests/components/script/conftest.py | 8 -------- tests/components/search/test_init.py | 6 ------ tests/components/sensor/test_device_condition.py | 5 ----- tests/components/sensor/test_device_trigger.py | 5 ----- tests/components/siren/test_trigger.py | 5 ----- tests/components/sun/test_trigger.py | 5 ----- tests/components/switch/test_device_action.py | 5 ----- tests/components/switch/test_device_condition.py | 5 ----- tests/components/switch/test_device_trigger.py | 5 ----- tests/components/switch/test_trigger.py | 5 ----- tests/components/tag/test_trigger.py | 5 ----- tests/components/tasmota/test_device_trigger.py | 5 ----- tests/components/template/conftest.py | 5 ----- tests/components/text/test_device_action.py | 5 ----- tests/components/text/test_trigger.py | 5 ----- tests/components/trace/conftest.py | 8 -------- tests/components/update/test_device_trigger.py | 5 ----- tests/components/update/test_trigger.py | 5 ----- tests/components/vacuum/test_device_action.py | 5 ----- tests/components/vacuum/test_device_condition.py | 5 ----- tests/components/vacuum/test_device_trigger.py | 5 ----- tests/components/vacuum/test_trigger.py | 5 ----- tests/components/water_heater/test_device_action.py | 5 ----- tests/components/webhook/test_trigger.py | 5 ----- tests/components/zha/test_device_action.py | 6 ------ tests/components/zha/test_device_trigger.py | 6 ------ tests/components/zone/test_trigger.py | 5 ----- 101 files changed, 547 deletions(-) delete mode 100644 tests/components/automation/conftest.py delete mode 100644 tests/components/blueprint/common.py delete mode 100644 tests/components/blueprint/conftest.py delete mode 100644 tests/components/emulated_hue/conftest.py delete mode 100644 tests/components/homeassistant/triggers/conftest.py delete mode 100644 tests/components/logbook/conftest.py delete mode 100644 tests/components/script/conftest.py delete mode 100644 tests/components/trace/conftest.py diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index 889d8ea10a38..54b755fc98cc 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -168,7 +168,6 @@ _TEST_FIXTURES: dict[str, list[str] | str] = { "service_calls": "list[ServiceCall]", "snapshot": "SnapshotAssertion", "socket_enabled": "None", - "stub_blueprint_populate": "None", "tmp_path": "Path", "tmpdir": "py.path.local", "tts_mutagen_mock": "MagicMock", diff --git a/tests/components/alarm_control_panel/test_condition.py b/tests/components/alarm_control_panel/test_condition.py index 1c79c5873108..500b1c6c290b 100644 --- a/tests/components/alarm_control_panel/test_condition.py +++ b/tests/components/alarm_control_panel/test_condition.py @@ -24,11 +24,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_alarm_control_panels(hass: HomeAssistant) -> list[str]: """Create multiple alarm_control_panel entities associated with different targets.""" diff --git a/tests/components/alarm_control_panel/test_device_action.py b/tests/components/alarm_control_panel/test_device_action.py index d52ee5733a1b..0774353f5f36 100644 --- a/tests/components/alarm_control_panel/test_device_action.py +++ b/tests/components/alarm_control_panel/test_device_action.py @@ -25,11 +25,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_action_types"), [ diff --git a/tests/components/alarm_control_panel/test_device_condition.py b/tests/components/alarm_control_panel/test_device_condition.py index 37cbc466e6d7..9d098a9b30b8 100644 --- a/tests/components/alarm_control_panel/test_device_condition.py +++ b/tests/components/alarm_control_panel/test_device_condition.py @@ -18,11 +18,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_condition_types"), [ diff --git a/tests/components/alarm_control_panel/test_device_trigger.py b/tests/components/alarm_control_panel/test_device_trigger.py index 979bc33bb00e..d5ad857fd1bf 100644 --- a/tests/components/alarm_control_panel/test_device_trigger.py +++ b/tests/components/alarm_control_panel/test_device_trigger.py @@ -26,11 +26,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_trigger_types"), [ diff --git a/tests/components/alarm_control_panel/test_trigger.py b/tests/components/alarm_control_panel/test_trigger.py index 48a924046a33..f6c67beea925 100644 --- a/tests/components/alarm_control_panel/test_trigger.py +++ b/tests/components/alarm_control_panel/test_trigger.py @@ -22,11 +22,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_alarm_control_panels(hass: HomeAssistant) -> list[str]: """Create multiple alarm control panel entities associated with different targets.""" diff --git a/tests/components/arcam_fmj/test_device_trigger.py b/tests/components/arcam_fmj/test_device_trigger.py index eb5cf1d7892b..9e97d253711d 100644 --- a/tests/components/arcam_fmj/test_device_trigger.py +++ b/tests/components/arcam_fmj/test_device_trigger.py @@ -1,7 +1,5 @@ """The tests for Arcam FMJ Receiver control device triggers.""" -import pytest - from homeassistant.components import automation from homeassistant.components.arcam_fmj.const import DOMAIN from homeassistant.components.device_automation import DeviceAutomationType @@ -12,11 +10,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/assist_satellite/test_condition.py b/tests/components/assist_satellite/test_condition.py index 9e3e0c4dbcfd..2615a69fb4f6 100644 --- a/tests/components/assist_satellite/test_condition.py +++ b/tests/components/assist_satellite/test_condition.py @@ -20,11 +20,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_assist_satellites(hass: HomeAssistant) -> list[str]: """Create multiple assist satellite entities associated with different targets.""" diff --git a/tests/components/assist_satellite/test_trigger.py b/tests/components/assist_satellite/test_trigger.py index 51d196673901..5b49d614c757 100644 --- a/tests/components/assist_satellite/test_trigger.py +++ b/tests/components/assist_satellite/test_trigger.py @@ -19,11 +19,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_assist_satellites(hass: HomeAssistant) -> list[str]: """Create multiple assist satellite entities associated with different targets.""" diff --git a/tests/components/automation/conftest.py b/tests/components/automation/conftest.py deleted file mode 100644 index 1d2d39a463d6..000000000000 --- a/tests/components/automation/conftest.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Conftest for automation tests.""" - -import pytest - - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" diff --git a/tests/components/binary_sensor/test_device_condition.py b/tests/components/binary_sensor/test_device_condition.py index 254c5428806a..1e11e64d5428 100644 --- a/tests/components/binary_sensor/test_device_condition.py +++ b/tests/components/binary_sensor/test_device_condition.py @@ -26,11 +26,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_conditions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/binary_sensor/test_device_trigger.py b/tests/components/binary_sensor/test_device_trigger.py index e9ad5d0a1e17..dfbf106dc919 100644 --- a/tests/components/binary_sensor/test_device_trigger.py +++ b/tests/components/binary_sensor/test_device_trigger.py @@ -26,11 +26,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/binary_sensor/test_trigger.py b/tests/components/binary_sensor/test_trigger.py index d78aed03b1b2..94a48557c7d7 100644 --- a/tests/components/binary_sensor/test_trigger.py +++ b/tests/components/binary_sensor/test_trigger.py @@ -23,11 +23,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_binary_sensors(hass: HomeAssistant) -> tuple[list[str], list[str]]: """Create multiple binary sensor entities associated with different targets.""" diff --git a/tests/components/blueprint/common.py b/tests/components/blueprint/common.py deleted file mode 100644 index 037aa38f6cbb..000000000000 --- a/tests/components/blueprint/common.py +++ /dev/null @@ -1,12 +0,0 @@ -"""Blueprints test helpers.""" - -from collections.abc import Generator -from unittest.mock import patch - - -def stub_blueprint_populate_fixture_helper() -> Generator[None]: - """Stub copying the blueprints to the config folder.""" - with patch( - "homeassistant.components.blueprint.models.DomainBlueprints.async_populate" - ): - yield diff --git a/tests/components/blueprint/conftest.py b/tests/components/blueprint/conftest.py deleted file mode 100644 index 21cc17ef1ba6..000000000000 --- a/tests/components/blueprint/conftest.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Blueprints conftest.""" - -import pytest - - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" diff --git a/tests/components/button/test_trigger.py b/tests/components/button/test_trigger.py index 5943bea44ffd..0c6c228fb089 100644 --- a/tests/components/button/test_trigger.py +++ b/tests/components/button/test_trigger.py @@ -19,11 +19,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_buttons(hass: HomeAssistant) -> list[str]: """Create multiple button entities associated with different targets.""" diff --git a/tests/components/climate/test_device_action.py b/tests/components/climate/test_device_action.py index 361aeaec8678..a8165ae1b688 100644 --- a/tests/components/climate/test_device_action.py +++ b/tests/components/climate/test_device_action.py @@ -24,11 +24,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_action_types"), [ diff --git a/tests/components/climate/test_device_condition.py b/tests/components/climate/test_device_condition.py index 16595f57c6fa..19c8addb5a8d 100644 --- a/tests/components/climate/test_device_condition.py +++ b/tests/components/climate/test_device_condition.py @@ -20,11 +20,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_condition_types"), [ diff --git a/tests/components/climate/test_device_trigger.py b/tests/components/climate/test_device_trigger.py index 06072b88afec..51e14e49a265 100644 --- a/tests/components/climate/test_device_trigger.py +++ b/tests/components/climate/test_device_trigger.py @@ -26,11 +26,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/climate/test_trigger.py b/tests/components/climate/test_trigger.py index 46716ef16f8c..0c26542b40dc 100644 --- a/tests/components/climate/test_trigger.py +++ b/tests/components/climate/test_trigger.py @@ -38,11 +38,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_climates(hass: HomeAssistant) -> list[str]: """Create multiple climate entities associated with different targets.""" diff --git a/tests/components/config/test_automation.py b/tests/components/config/test_automation.py index b20b0fb5699c..f05ee3b1fd23 100644 --- a/tests/components/config/test_automation.py +++ b/tests/components/config/test_automation.py @@ -18,16 +18,10 @@ from homeassistant.util import yaml as yaml_util from tests.typing import ClientSessionGenerator -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def setup_automation( hass: HomeAssistant, automation_config: dict[str, Any], - stub_blueprint_populate: None, ) -> None: """Set up automation integration.""" assert await async_setup_component( diff --git a/tests/components/config/test_device_registry.py b/tests/components/config/test_device_registry.py index 8a4e1ef234f9..b9b04bb396cb 100644 --- a/tests/components/config/test_device_registry.py +++ b/tests/components/config/test_device_registry.py @@ -17,11 +17,6 @@ from tests.common import MockConfigEntry, MockModule, mock_integration from tests.typing import MockHAClientWebSocket, WebSocketGenerator -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture(name="client") async def client_fixture( hass: HomeAssistant, hass_ws_client: WebSocketGenerator diff --git a/tests/components/config/test_script.py b/tests/components/config/test_script.py index 10d453b17f1c..c5e4585af894 100644 --- a/tests/components/config/test_script.py +++ b/tests/components/config/test_script.py @@ -18,11 +18,6 @@ from homeassistant.util import yaml as yaml_util from tests.typing import ClientSessionGenerator -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture(autouse=True) async def setup_script(hass: HomeAssistant, script_config: dict[str, Any]) -> None: """Set up script integration.""" diff --git a/tests/components/conftest.py b/tests/components/conftest.py index 19f8d605c347..5dff1565ac79 100644 --- a/tests/components/conftest.py +++ b/tests/components/conftest.py @@ -108,17 +108,6 @@ def entity_registry_enabled_by_default() -> Generator[None]: yield -# Blueprint test fixtures -@pytest.fixture(name="stub_blueprint_populate") -def stub_blueprint_populate_fixture() -> Generator[None]: - """Stub copying the blueprints to the config folder.""" - from .blueprint.common import ( # noqa: PLC0415 - stub_blueprint_populate_fixture_helper, - ) - - yield from stub_blueprint_populate_fixture_helper() - - # TTS test fixtures @pytest.fixture(name="mock_tts_get_cache_files") def mock_tts_get_cache_files_fixture() -> Generator[MagicMock]: diff --git a/tests/components/cover/test_device_action.py b/tests/components/cover/test_device_action.py index 438e5de751d1..435711db8fe1 100644 --- a/tests/components/cover/test_device_action.py +++ b/tests/components/cover/test_device_action.py @@ -23,11 +23,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_action_types"), [ diff --git a/tests/components/cover/test_device_condition.py b/tests/components/cover/test_device_condition.py index 5bd021205856..c8539f8c5718 100644 --- a/tests/components/cover/test_device_condition.py +++ b/tests/components/cover/test_device_condition.py @@ -22,11 +22,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_condition_types"), [ diff --git a/tests/components/cover/test_device_trigger.py b/tests/components/cover/test_device_trigger.py index 1a6b50b29352..5a877741fffc 100644 --- a/tests/components/cover/test_device_trigger.py +++ b/tests/components/cover/test_device_trigger.py @@ -26,11 +26,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_trigger_types"), [ diff --git a/tests/components/deconz/test_device_trigger.py b/tests/components/deconz/test_device_trigger.py index 5781a4c3ed5d..8184056e39fd 100644 --- a/tests/components/deconz/test_device_trigger.py +++ b/tests/components/deconz/test_device_trigger.py @@ -39,11 +39,6 @@ from .conftest import WebsocketDataType from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( "sensor_payload", [ diff --git a/tests/components/default_config/test_init.py b/tests/components/default_config/test_init.py index 1a6665b2404b..9bff213bb749 100644 --- a/tests/components/default_config/test_init.py +++ b/tests/components/default_config/test_init.py @@ -10,11 +10,6 @@ from homeassistant.helpers import recorder as recorder_helper from homeassistant.setup import async_setup_component -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture(autouse=True) def mock_ssdp(): """Mock ssdp.""" diff --git a/tests/components/demo/conftest.py b/tests/components/demo/conftest.py index 56aabac0280c..e3b2bec001b1 100644 --- a/tests/components/demo/conftest.py +++ b/tests/components/demo/conftest.py @@ -10,11 +10,6 @@ from homeassistant.setup import async_setup_component from tests.components.light.conftest import mock_light_profiles # noqa: F401 -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture(autouse=True) async def setup_homeassistant(hass: HomeAssistant): """Set up the homeassistant integration.""" diff --git a/tests/components/device_automation/test_init.py b/tests/components/device_automation/test_init.py index c04dd242e61f..a176199ff91a 100644 --- a/tests/components/device_automation/test_init.py +++ b/tests/components/device_automation/test_init.py @@ -34,11 +34,6 @@ class MockDeviceEntry(dr.DeviceEntry): id: str = attr.ib(default="very_unique") -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture def fake_integration(hass: HomeAssistant) -> None: """Set up a mock integration with device automation support.""" diff --git a/tests/components/device_automation/test_toggle_entity.py b/tests/components/device_automation/test_toggle_entity.py index a7b2f8a3b757..8f42b9101f4c 100644 --- a/tests/components/device_automation/test_toggle_entity.py +++ b/tests/components/device_automation/test_toggle_entity.py @@ -14,11 +14,6 @@ from homeassistant.util import dt as dt_util from tests.common import MockConfigEntry, async_fire_time_changed -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_if_fires_on_state_change( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/device_tracker/test_device_condition.py b/tests/components/device_tracker/test_device_condition.py index aff020d61a81..91983ca6ed82 100644 --- a/tests/components/device_tracker/test_device_condition.py +++ b/tests/components/device_tracker/test_device_condition.py @@ -15,11 +15,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_conditions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/device_tracker/test_device_trigger.py b/tests/components/device_tracker/test_device_trigger.py index 860c470fc37a..0466df96a9ed 100644 --- a/tests/components/device_tracker/test_device_trigger.py +++ b/tests/components/device_tracker/test_device_trigger.py @@ -19,12 +19,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - AWAY_LATITUDE = 32.881011 AWAY_LONGITUDE = -117.234758 diff --git a/tests/components/device_tracker/test_trigger.py b/tests/components/device_tracker/test_trigger.py index 0327f46a5111..19ac9c929c29 100644 --- a/tests/components/device_tracker/test_trigger.py +++ b/tests/components/device_tracker/test_trigger.py @@ -24,11 +24,6 @@ from tests.components import ( STATE_WORK_ZONE = "work" -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_device_trackers(hass: HomeAssistant) -> list[str]: """Create multiple device_trackers entities associated with different targets.""" diff --git a/tests/components/emulated_hue/conftest.py b/tests/components/emulated_hue/conftest.py deleted file mode 100644 index e25a2099227f..000000000000 --- a/tests/components/emulated_hue/conftest.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Conftest for emulated_hue tests.""" - -import pytest - - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" diff --git a/tests/components/fan/test_condition.py b/tests/components/fan/test_condition.py index 12bceaa44348..31c46f2fa700 100644 --- a/tests/components/fan/test_condition.py +++ b/tests/components/fan/test_condition.py @@ -19,11 +19,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_fans(hass: HomeAssistant) -> list[str]: """Create multiple fan entities associated with different targets.""" diff --git a/tests/components/fan/test_device_action.py b/tests/components/fan/test_device_action.py index 647e45374ac4..747c75ed7545 100644 --- a/tests/components/fan/test_device_action.py +++ b/tests/components/fan/test_device_action.py @@ -19,11 +19,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_actions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/fan/test_device_condition.py b/tests/components/fan/test_device_condition.py index da48f3223afc..4b2ffad2812b 100644 --- a/tests/components/fan/test_device_condition.py +++ b/tests/components/fan/test_device_condition.py @@ -15,11 +15,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_conditions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/fan/test_device_trigger.py b/tests/components/fan/test_device_trigger.py index 800412fc9d4f..d11078d9863f 100644 --- a/tests/components/fan/test_device_trigger.py +++ b/tests/components/fan/test_device_trigger.py @@ -23,11 +23,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/fan/test_trigger.py b/tests/components/fan/test_trigger.py index 33e5b8f2ea72..b197733306ce 100644 --- a/tests/components/fan/test_trigger.py +++ b/tests/components/fan/test_trigger.py @@ -17,11 +17,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_fans(hass: HomeAssistant) -> list[str]: """Create multiple fan entities associated with different targets.""" diff --git a/tests/components/filter/test_sensor.py b/tests/components/filter/test_sensor.py index 22db1c3cec2e..27d0fa23e3f4 100644 --- a/tests/components/filter/test_sensor.py +++ b/tests/components/filter/test_sensor.py @@ -49,11 +49,6 @@ from homeassistant.util import dt as dt_util from tests.common import MockConfigEntry, assert_setup_component, get_fixture_path -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture(name="values") def values_fixture() -> list[State]: """Fixture for a list of test States.""" diff --git a/tests/components/geo_location/test_trigger.py b/tests/components/geo_location/test_trigger.py index 0a9ad8a5b164..79a67a990bc6 100644 --- a/tests/components/geo_location/test_trigger.py +++ b/tests/components/geo_location/test_trigger.py @@ -17,11 +17,6 @@ from homeassistant.setup import async_setup_component from tests.common import async_mock_service, mock_component -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture def calls(hass: HomeAssistant) -> list[ServiceCall]: """Track calls to a mock service.""" diff --git a/tests/components/homeassistant/triggers/conftest.py b/tests/components/homeassistant/triggers/conftest.py deleted file mode 100644 index 9dabbad99c9d..000000000000 --- a/tests/components/homeassistant/triggers/conftest.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Conftest for HA triggers.""" - -import pytest - - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" diff --git a/tests/components/homekit_controller/test_device_trigger.py b/tests/components/homekit_controller/test_device_trigger.py index ba952ac5913b..8e462a8600f1 100644 --- a/tests/components/homekit_controller/test_device_trigger.py +++ b/tests/components/homekit_controller/test_device_trigger.py @@ -5,7 +5,6 @@ from collections.abc import Callable from aiohomekit.model import Accessory from aiohomekit.model.characteristics import CharacteristicsTypes from aiohomekit.model.services import ServicesTypes -import pytest from pytest_unordered import unordered from homeassistant.components import automation @@ -21,11 +20,6 @@ from .common import setup_test_component from tests.common import async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - def create_remote(accessory: Accessory) -> None: """Define characteristics for a button (that is inn a group).""" service_label = accessory.add_service(ServicesTypes.SERVICE_LABEL) diff --git a/tests/components/humidifier/test_device_action.py b/tests/components/humidifier/test_device_action.py index 567be27721f9..1d1f70574b00 100644 --- a/tests/components/humidifier/test_device_action.py +++ b/tests/components/humidifier/test_device_action.py @@ -24,11 +24,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_action_types"), [ diff --git a/tests/components/humidifier/test_device_condition.py b/tests/components/humidifier/test_device_condition.py index 55a2c6878674..ef46f17a8327 100644 --- a/tests/components/humidifier/test_device_condition.py +++ b/tests/components/humidifier/test_device_condition.py @@ -20,11 +20,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_condition_types"), [ diff --git a/tests/components/humidifier/test_device_trigger.py b/tests/components/humidifier/test_device_trigger.py index 6d45861b2275..dfd6fc0bd101 100644 --- a/tests/components/humidifier/test_device_trigger.py +++ b/tests/components/humidifier/test_device_trigger.py @@ -33,11 +33,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/humidifier/test_trigger.py b/tests/components/humidifier/test_trigger.py index 2b85ab26cc0a..d966304c8768 100644 --- a/tests/components/humidifier/test_trigger.py +++ b/tests/components/humidifier/test_trigger.py @@ -24,11 +24,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_humidifiers(hass: HomeAssistant) -> list[str]: """Create multiple humidifier entities associated with different targets.""" diff --git a/tests/components/kodi/test_device_trigger.py b/tests/components/kodi/test_device_trigger.py index 541a9f781fdf..2e797245c24e 100644 --- a/tests/components/kodi/test_device_trigger.py +++ b/tests/components/kodi/test_device_trigger.py @@ -15,11 +15,6 @@ from . import init_integration from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def kodi_media_player(hass: HomeAssistant) -> str: """Get a kodi media player.""" diff --git a/tests/components/lawn_mower/test_trigger.py b/tests/components/lawn_mower/test_trigger.py index bd76bd429d68..cb51c8529e45 100644 --- a/tests/components/lawn_mower/test_trigger.py +++ b/tests/components/lawn_mower/test_trigger.py @@ -19,11 +19,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_lawn_mowers(hass: HomeAssistant) -> list[str]: """Create multiple lawn mower entities associated with different targets.""" diff --git a/tests/components/light/test_condition.py b/tests/components/light/test_condition.py index 7633a8f162c0..53725df75c0f 100644 --- a/tests/components/light/test_condition.py +++ b/tests/components/light/test_condition.py @@ -19,11 +19,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_lights(hass: HomeAssistant) -> list[str]: """Create multiple light entities associated with different targets.""" diff --git a/tests/components/light/test_device_action.py b/tests/components/light/test_device_action.py index 1f69b586c9b2..1e2a8c531ac7 100644 --- a/tests/components/light/test_device_action.py +++ b/tests/components/light/test_device_action.py @@ -27,11 +27,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_actions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/light/test_device_condition.py b/tests/components/light/test_device_condition.py index 1dabe6e60719..4dbc98bc8841 100644 --- a/tests/components/light/test_device_condition.py +++ b/tests/components/light/test_device_condition.py @@ -26,11 +26,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_conditions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/light/test_device_trigger.py b/tests/components/light/test_device_trigger.py index 99e0a5e5b93b..57d8188e0920 100644 --- a/tests/components/light/test_device_trigger.py +++ b/tests/components/light/test_device_trigger.py @@ -31,11 +31,6 @@ DATA_TEMPLATE_ATTRIBUTES = ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/light/test_trigger.py b/tests/components/light/test_trigger.py index d265fade22b0..597f69442835 100644 --- a/tests/components/light/test_trigger.py +++ b/tests/components/light/test_trigger.py @@ -20,11 +20,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_lights(hass: HomeAssistant) -> list[str]: """Create multiple light entities associated with different targets.""" diff --git a/tests/components/litejet/test_trigger.py b/tests/components/litejet/test_trigger.py index de99d701926d..068f8022b5f2 100644 --- a/tests/components/litejet/test_trigger.py +++ b/tests/components/litejet/test_trigger.py @@ -6,8 +6,6 @@ from typing import Any from unittest import mock from unittest.mock import MagicMock, patch -import pytest - from homeassistant import setup from homeassistant.components import automation from homeassistant.core import HomeAssistant, ServiceCall @@ -17,12 +15,6 @@ from . import async_init_integration from tests.common import async_fire_time_changed_exact - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - _LOGGER = logging.getLogger(__name__) ENTITY_SWITCH = "switch.mock_switch_1" diff --git a/tests/components/lock/test_device_action.py b/tests/components/lock/test_device_action.py index e77e7edd0053..ee1edc39eb06 100644 --- a/tests/components/lock/test_device_action.py +++ b/tests/components/lock/test_device_action.py @@ -19,11 +19,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("set_state", "features_reg", "features_state", "expected_action_types"), [ diff --git a/tests/components/lock/test_device_condition.py b/tests/components/lock/test_device_condition.py index 1818d4933b80..3b9f66067bd5 100644 --- a/tests/components/lock/test_device_condition.py +++ b/tests/components/lock/test_device_condition.py @@ -15,11 +15,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_conditions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/lock/test_device_trigger.py b/tests/components/lock/test_device_trigger.py index a5b8e47ef2fb..efefa0f4274b 100644 --- a/tests/components/lock/test_device_trigger.py +++ b/tests/components/lock/test_device_trigger.py @@ -23,11 +23,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/lock/test_trigger.py b/tests/components/lock/test_trigger.py index bab31788460e..ec304b116eab 100644 --- a/tests/components/lock/test_trigger.py +++ b/tests/components/lock/test_trigger.py @@ -19,11 +19,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_locks(hass: HomeAssistant) -> list[str]: """Create multiple lock entities associated with different targets.""" diff --git a/tests/components/logbook/conftest.py b/tests/components/logbook/conftest.py deleted file mode 100644 index 8795ba3c018a..000000000000 --- a/tests/components/logbook/conftest.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Conftest for script tests.""" - -import pytest - - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" diff --git a/tests/components/media_player/test_device_condition.py b/tests/components/media_player/test_device_condition.py index 78d30e2ca6eb..531e412670b8 100644 --- a/tests/components/media_player/test_device_condition.py +++ b/tests/components/media_player/test_device_condition.py @@ -23,11 +23,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_conditions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/media_player/test_device_trigger.py b/tests/components/media_player/test_device_trigger.py index e82f1cd36124..7618d0a474b1 100644 --- a/tests/components/media_player/test_device_trigger.py +++ b/tests/components/media_player/test_device_trigger.py @@ -31,11 +31,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/media_player/test_trigger.py b/tests/components/media_player/test_trigger.py index 46cbb9181c8b..11d9eefb8445 100644 --- a/tests/components/media_player/test_trigger.py +++ b/tests/components/media_player/test_trigger.py @@ -18,11 +18,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_media_players(hass: HomeAssistant) -> list[str]: """Create multiple media player entities associated with different targets.""" diff --git a/tests/components/mqtt/test_device_trigger.py b/tests/components/mqtt/test_device_trigger.py index ecf922e54a1c..511b57204061 100644 --- a/tests/components/mqtt/test_device_trigger.py +++ b/tests/components/mqtt/test_device_trigger.py @@ -22,11 +22,6 @@ from tests.common import async_fire_mqtt_message, async_get_device_automations from tests.typing import MqttMockHAClientGenerator, WebSocketGenerator -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( ("discovery_topic", "data"), [ diff --git a/tests/components/mqtt/test_trigger.py b/tests/components/mqtt/test_trigger.py index 5bf36849b13d..88542f8afbfd 100644 --- a/tests/components/mqtt/test_trigger.py +++ b/tests/components/mqtt/test_trigger.py @@ -13,11 +13,6 @@ from tests.common import async_fire_mqtt_message, mock_component from tests.typing import MqttMockHAClient, MqttMockHAClientGenerator -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture(autouse=True) async def setup_comp( hass: HomeAssistant, mqtt_mock_entry: MqttMockHAClientGenerator diff --git a/tests/components/number/test_device_action.py b/tests/components/number/test_device_action.py index 6b24c15f18a5..a0b118ab50e5 100644 --- a/tests/components/number/test_device_action.py +++ b/tests/components/number/test_device_action.py @@ -24,11 +24,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_actions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/person/test_trigger.py b/tests/components/person/test_trigger.py index 2808f05c97c1..a754faae1a7f 100644 --- a/tests/components/person/test_trigger.py +++ b/tests/components/person/test_trigger.py @@ -25,11 +25,6 @@ from tests.components import ( STATE_WORK_ZONE = "work" -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_persons(hass: HomeAssistant) -> list[str]: """Create multiple persons entities associated with different targets.""" diff --git a/tests/components/philips_js/test_device_trigger.py b/tests/components/philips_js/test_device_trigger.py index 8f2e5543f1e1..679c482d4b12 100644 --- a/tests/components/philips_js/test_device_trigger.py +++ b/tests/components/philips_js/test_device_trigger.py @@ -1,6 +1,5 @@ """The tests for Philips TV device triggers.""" -import pytest from pytest_unordered import unordered from homeassistant.components import automation @@ -12,11 +11,6 @@ from homeassistant.setup import async_setup_component from tests.common import async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers(hass: HomeAssistant, mock_device) -> None: """Test we get the expected triggers.""" expected_triggers = [ diff --git a/tests/components/remote/test_device_action.py b/tests/components/remote/test_device_action.py index e224fcf4939c..34cc74b1506e 100644 --- a/tests/components/remote/test_device_action.py +++ b/tests/components/remote/test_device_action.py @@ -19,11 +19,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_actions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/remote/test_device_condition.py b/tests/components/remote/test_device_condition.py index c5ba1c77c319..efa3ae4709c6 100644 --- a/tests/components/remote/test_device_condition.py +++ b/tests/components/remote/test_device_condition.py @@ -23,11 +23,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_conditions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/remote/test_device_trigger.py b/tests/components/remote/test_device_trigger.py index 0321ba8bbaaf..cc4a6602d3b7 100644 --- a/tests/components/remote/test_device_trigger.py +++ b/tests/components/remote/test_device_trigger.py @@ -23,11 +23,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/scene/test_trigger.py b/tests/components/scene/test_trigger.py index ea9c5f6c63ad..7549056f655d 100644 --- a/tests/components/scene/test_trigger.py +++ b/tests/components/scene/test_trigger.py @@ -19,11 +19,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_scenes(hass: HomeAssistant) -> list[str]: """Create multiple scene entities associated with different targets.""" diff --git a/tests/components/script/conftest.py b/tests/components/script/conftest.py deleted file mode 100644 index 8795ba3c018a..000000000000 --- a/tests/components/script/conftest.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Conftest for script tests.""" - -import pytest - - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" diff --git a/tests/components/search/test_init.py b/tests/components/search/test_init.py index 2c00c3bf6f29..268f829ba0a0 100644 --- a/tests/components/search/test_init.py +++ b/tests/components/search/test_init.py @@ -1,6 +1,5 @@ """Tests for Search integration.""" -import pytest from pytest_unordered import unordered from homeassistant.components.search import ItemType, Searcher @@ -19,11 +18,6 @@ from tests.common import MockConfigEntry from tests.typing import WebSocketGenerator -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_search( hass: HomeAssistant, area_registry: ar.AreaRegistry, diff --git a/tests/components/sensor/test_device_condition.py b/tests/components/sensor/test_device_condition.py index e33dd0ffb520..67f07e3293a3 100644 --- a/tests/components/sensor/test_device_condition.py +++ b/tests/components/sensor/test_device_condition.py @@ -31,11 +31,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( "device_class", [ diff --git a/tests/components/sensor/test_device_trigger.py b/tests/components/sensor/test_device_trigger.py index 43476a6a43b2..8b407ac5576c 100644 --- a/tests/components/sensor/test_device_trigger.py +++ b/tests/components/sensor/test_device_trigger.py @@ -35,11 +35,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.mark.parametrize( "device_class", [ diff --git a/tests/components/siren/test_trigger.py b/tests/components/siren/test_trigger.py index 25f60350ce7b..1187b5365e2e 100644 --- a/tests/components/siren/test_trigger.py +++ b/tests/components/siren/test_trigger.py @@ -18,11 +18,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_sirens(hass: HomeAssistant) -> list[str]: """Create multiple siren entities associated with different targets.""" diff --git a/tests/components/sun/test_trigger.py b/tests/components/sun/test_trigger.py index ec848c61338d..ae2bdbbdf23f 100644 --- a/tests/components/sun/test_trigger.py +++ b/tests/components/sun/test_trigger.py @@ -21,11 +21,6 @@ from homeassistant.util import dt as dt_util from tests.common import async_fire_time_changed, mock_component -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture(autouse=True) async def setup_comp(hass: HomeAssistant) -> None: """Initialize components.""" diff --git a/tests/components/switch/test_device_action.py b/tests/components/switch/test_device_action.py index 9751721cbc78..e8bcfa15c66b 100644 --- a/tests/components/switch/test_device_action.py +++ b/tests/components/switch/test_device_action.py @@ -19,11 +19,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_actions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/switch/test_device_condition.py b/tests/components/switch/test_device_condition.py index 89c84b1ed346..ecdf6c04a5e8 100644 --- a/tests/components/switch/test_device_condition.py +++ b/tests/components/switch/test_device_condition.py @@ -23,11 +23,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_conditions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/switch/test_device_trigger.py b/tests/components/switch/test_device_trigger.py index a642bb44825f..fdf73bc3cfe2 100644 --- a/tests/components/switch/test_device_trigger.py +++ b/tests/components/switch/test_device_trigger.py @@ -23,11 +23,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/switch/test_trigger.py b/tests/components/switch/test_trigger.py index fe39f0584302..901a9e334d58 100644 --- a/tests/components/switch/test_trigger.py +++ b/tests/components/switch/test_trigger.py @@ -18,11 +18,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_switches(hass: HomeAssistant) -> list[str]: """Create multiple switch entities associated with different targets.""" diff --git a/tests/components/tag/test_trigger.py b/tests/components/tag/test_trigger.py index 5c7e515d3227..91f1bfba95b1 100644 --- a/tests/components/tag/test_trigger.py +++ b/tests/components/tag/test_trigger.py @@ -12,11 +12,6 @@ from homeassistant.core import HomeAssistant, ServiceCall from homeassistant.setup import async_setup_component -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture def tag_setup(hass: HomeAssistant, hass_storage: dict[str, Any]): """Tag setup.""" diff --git a/tests/components/tasmota/test_device_trigger.py b/tests/components/tasmota/test_device_trigger.py index bb4743580065..80138da69e81 100644 --- a/tests/components/tasmota/test_device_trigger.py +++ b/tests/components/tasmota/test_device_trigger.py @@ -23,11 +23,6 @@ from tests.common import async_fire_mqtt_message, async_get_device_automations from tests.typing import MqttMockHAClient, WebSocketGenerator -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers_btn( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/template/conftest.py b/tests/components/template/conftest.py index cee25e502613..cb86c74830e2 100644 --- a/tests/components/template/conftest.py +++ b/tests/components/template/conftest.py @@ -335,11 +335,6 @@ async def caplog_setup_text(caplog: pytest.LogCaptureFixture) -> str: return caplog.text -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def async_get_flow_preview_state( hass: HomeAssistant, hass_ws_client: WebSocketGenerator, diff --git a/tests/components/text/test_device_action.py b/tests/components/text/test_device_action.py index 5766e5dce2af..4cd368e737c8 100644 --- a/tests/components/text/test_device_action.py +++ b/tests/components/text/test_device_action.py @@ -24,11 +24,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_actions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/text/test_trigger.py b/tests/components/text/test_trigger.py index 37df0fc33fb7..547544d94495 100644 --- a/tests/components/text/test_trigger.py +++ b/tests/components/text/test_trigger.py @@ -19,11 +19,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_texts(hass: HomeAssistant) -> list[str]: """Create multiple text entities associated with different targets.""" diff --git a/tests/components/trace/conftest.py b/tests/components/trace/conftest.py deleted file mode 100644 index 01dc57a99482..000000000000 --- a/tests/components/trace/conftest.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Conftest for trace tests.""" - -import pytest - - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" diff --git a/tests/components/update/test_device_trigger.py b/tests/components/update/test_device_trigger.py index 7cdaf4ca720c..bb6ad4106bfd 100644 --- a/tests/components/update/test_device_trigger.py +++ b/tests/components/update/test_device_trigger.py @@ -25,11 +25,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/update/test_trigger.py b/tests/components/update/test_trigger.py index b087a6ea4004..87615bb61b0e 100644 --- a/tests/components/update/test_trigger.py +++ b/tests/components/update/test_trigger.py @@ -18,11 +18,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_updates(hass: HomeAssistant) -> list[str]: """Create multiple update entities associated with different targets.""" diff --git a/tests/components/vacuum/test_device_action.py b/tests/components/vacuum/test_device_action.py index 08459e055712..16eed8494395 100644 --- a/tests/components/vacuum/test_device_action.py +++ b/tests/components/vacuum/test_device_action.py @@ -19,11 +19,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_actions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/vacuum/test_device_condition.py b/tests/components/vacuum/test_device_condition.py index 5a1b1fea7de6..028998b6d144 100644 --- a/tests/components/vacuum/test_device_condition.py +++ b/tests/components/vacuum/test_device_condition.py @@ -15,11 +15,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_conditions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/vacuum/test_device_trigger.py b/tests/components/vacuum/test_device_trigger.py index 330f14be5076..7a51c7caee64 100644 --- a/tests/components/vacuum/test_device_trigger.py +++ b/tests/components/vacuum/test_device_trigger.py @@ -23,11 +23,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_triggers( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/vacuum/test_trigger.py b/tests/components/vacuum/test_trigger.py index 2bcebbbb9389..7c71346cc4ed 100644 --- a/tests/components/vacuum/test_trigger.py +++ b/tests/components/vacuum/test_trigger.py @@ -19,11 +19,6 @@ from tests.components import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture async def target_vacuums(hass: HomeAssistant) -> list[str]: """Create multiple vacuum entities associated with different targets.""" diff --git a/tests/components/water_heater/test_device_action.py b/tests/components/water_heater/test_device_action.py index 943aa3373a0c..82179c63237c 100644 --- a/tests/components/water_heater/test_device_action.py +++ b/tests/components/water_heater/test_device_action.py @@ -19,11 +19,6 @@ from tests.common import ( ) -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - async def test_get_actions( hass: HomeAssistant, device_registry: dr.DeviceRegistry, diff --git a/tests/components/webhook/test_trigger.py b/tests/components/webhook/test_trigger.py index 2f7f29007713..ce372fbebbba 100644 --- a/tests/components/webhook/test_trigger.py +++ b/tests/components/webhook/test_trigger.py @@ -12,11 +12,6 @@ from tests.common import async_capture_events from tests.typing import ClientSessionGenerator -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture(autouse=True) async def setup_http(hass: HomeAssistant) -> None: """Set up http.""" diff --git a/tests/components/zha/test_device_action.py b/tests/components/zha/test_device_action.py index 0ebee66fb9ae..92cba1ed279f 100644 --- a/tests/components/zha/test_device_action.py +++ b/tests/components/zha/test_device_action.py @@ -23,12 +23,6 @@ from .conftest import SIG_EP_INPUT, SIG_EP_OUTPUT, SIG_EP_PROFILE, SIG_EP_TYPE from tests.common import async_get_device_automations, async_mock_service - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - SHORT_PRESS = "remote_button_short_press" COMMAND = "command" COMMAND_SINGLE = "single" diff --git a/tests/components/zha/test_device_trigger.py b/tests/components/zha/test_device_trigger.py index 42e603d3e14d..0839bbfdcb9a 100644 --- a/tests/components/zha/test_device_trigger.py +++ b/tests/components/zha/test_device_trigger.py @@ -23,12 +23,6 @@ from homeassistant.setup import async_setup_component from tests.common import MockConfigEntry, async_get_device_automations - -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - ON = 1 OFF = 0 SHAKEN = "device_shaken" diff --git a/tests/components/zone/test_trigger.py b/tests/components/zone/test_trigger.py index 27276c6905f3..16cbb7b54184 100644 --- a/tests/components/zone/test_trigger.py +++ b/tests/components/zone/test_trigger.py @@ -11,11 +11,6 @@ from homeassistant.setup import async_setup_component from tests.common import mock_component -@pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: - """Stub copying the blueprints to the config folder.""" - - @pytest.fixture(autouse=True) async def setup_comp(hass: HomeAssistant) -> None: """Initialize components."""