From ec98e223306f80dc663a9daee8c90064fbe419d7 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Fri, 26 May 2023 08:13:13 +0200 Subject: [PATCH] Add type hints for stub_blueprint_populate fixture (#93568) Add typehints for stub_blueprint_populate fixture --- pylint/plugins/hass_enforce_type_hints.py | 1 + tests/components/alarm_control_panel/test_device_action.py | 2 +- tests/components/alarm_control_panel/test_device_condition.py | 2 +- tests/components/alarm_control_panel/test_device_trigger.py | 2 +- tests/components/arcam_fmj/test_device_trigger.py | 2 +- tests/components/automation/conftest.py | 2 +- tests/components/binary_sensor/test_device_condition.py | 2 +- tests/components/binary_sensor/test_device_trigger.py | 2 +- tests/components/blueprint/common.py | 4 +++- tests/components/blueprint/conftest.py | 2 +- tests/components/climate/test_device_action.py | 2 +- tests/components/climate/test_device_condition.py | 2 +- tests/components/climate/test_device_trigger.py | 2 +- tests/components/config/test_automation.py | 2 +- tests/components/config/test_device_registry.py | 2 +- tests/components/config/test_script.py | 2 +- tests/components/conftest.py | 2 +- tests/components/cover/test_device_action.py | 2 +- tests/components/cover/test_device_condition.py | 2 +- tests/components/cover/test_device_trigger.py | 2 +- tests/components/deconz/test_device_trigger.py | 2 +- tests/components/default_config/test_init.py | 2 +- tests/components/demo/conftest.py | 2 +- tests/components/device_automation/test_init.py | 2 +- tests/components/device_automation/test_toggle_entity.py | 2 +- tests/components/device_tracker/test_device_condition.py | 2 +- tests/components/device_tracker/test_device_trigger.py | 2 +- tests/components/emulated_hue/conftest.py | 2 +- tests/components/fan/test_device_action.py | 2 +- tests/components/fan/test_device_condition.py | 2 +- tests/components/fan/test_device_trigger.py | 2 +- tests/components/geo_location/test_trigger.py | 2 +- tests/components/homeassistant/triggers/conftest.py | 2 +- tests/components/homekit_controller/test_device_trigger.py | 2 +- tests/components/humidifier/test_device_action.py | 2 +- tests/components/humidifier/test_device_condition.py | 2 +- tests/components/humidifier/test_device_trigger.py | 2 +- tests/components/kodi/test_device_trigger.py | 2 +- tests/components/light/test_device_action.py | 2 +- tests/components/light/test_device_condition.py | 2 +- tests/components/light/test_device_trigger.py | 2 +- tests/components/litejet/test_trigger.py | 2 +- tests/components/lock/test_device_action.py | 2 +- tests/components/lock/test_device_condition.py | 2 +- tests/components/lock/test_device_trigger.py | 2 +- tests/components/logbook/conftest.py | 2 +- tests/components/media_player/test_device_condition.py | 2 +- tests/components/media_player/test_device_trigger.py | 2 +- tests/components/mqtt/test_device_trigger.py | 2 +- tests/components/mqtt/test_trigger.py | 2 +- tests/components/number/test_device_action.py | 2 +- tests/components/philips_js/test_device_trigger.py | 2 +- tests/components/remote/test_device_action.py | 2 +- tests/components/remote/test_device_condition.py | 2 +- tests/components/remote/test_device_trigger.py | 2 +- tests/components/script/conftest.py | 2 +- tests/components/search/test_init.py | 2 +- tests/components/sensor/test_device_condition.py | 2 +- tests/components/sensor/test_device_trigger.py | 2 +- tests/components/sun/test_trigger.py | 2 +- tests/components/switch/test_device_action.py | 2 +- tests/components/switch/test_device_condition.py | 2 +- tests/components/switch/test_device_trigger.py | 2 +- tests/components/tag/test_trigger.py | 2 +- tests/components/tasmota/test_device_trigger.py | 2 +- tests/components/text/test_device_action.py | 2 +- tests/components/trace/conftest.py | 2 +- tests/components/update/test_device_trigger.py | 2 +- tests/components/vacuum/test_device_action.py | 2 +- tests/components/vacuum/test_device_condition.py | 2 +- tests/components/vacuum/test_device_trigger.py | 2 +- tests/components/water_heater/test_device_action.py | 2 +- tests/components/webhook/test_trigger.py | 2 +- tests/components/zha/test_device_action.py | 2 +- tests/components/zha/test_device_trigger.py | 2 +- tests/components/zone/test_trigger.py | 2 +- 76 files changed, 78 insertions(+), 75 deletions(-) diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index dc9682173516..1d7bac65c19b 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -140,6 +140,7 @@ _TEST_FIXTURES: dict[str, list[str] | str] = { "recorder_mock": "Recorder", "requests_mock": "requests_mock.Mocker", "snapshot": "SnapshotAssertion", + "stub_blueprint_populate": "None", "tmp_path": "Path", "tmpdir": "py.path.local", } diff --git a/tests/components/alarm_control_panel/test_device_action.py b/tests/components/alarm_control_panel/test_device_action.py index 5c9f6622905d..c587d94f3ed7 100644 --- a/tests/components/alarm_control_panel/test_device_action.py +++ b/tests/components/alarm_control_panel/test_device_action.py @@ -31,7 +31,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/alarm_control_panel/test_device_condition.py b/tests/components/alarm_control_panel/test_device_condition.py index d56ddccab64f..b1687a385b39 100644 --- a/tests/components/alarm_control_panel/test_device_condition.py +++ b/tests/components/alarm_control_panel/test_device_condition.py @@ -30,7 +30,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/alarm_control_panel/test_device_trigger.py b/tests/components/alarm_control_panel/test_device_trigger.py index 0cdcf1d88506..d81c83702d8a 100644 --- a/tests/components/alarm_control_panel/test_device_trigger.py +++ b/tests/components/alarm_control_panel/test_device_trigger.py @@ -35,7 +35,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/arcam_fmj/test_device_trigger.py b/tests/components/arcam_fmj/test_device_trigger.py index 48561f251b37..012bc3a20af6 100644 --- a/tests/components/arcam_fmj/test_device_trigger.py +++ b/tests/components/arcam_fmj/test_device_trigger.py @@ -16,7 +16,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/automation/conftest.py b/tests/components/automation/conftest.py index 1aa56bbf9b94..1d2d39a463d6 100644 --- a/tests/components/automation/conftest.py +++ b/tests/components/automation/conftest.py @@ -4,5 +4,5 @@ import pytest @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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 2e1f77aa091e..b1a0296d0d35 100644 --- a/tests/components/binary_sensor/test_device_condition.py +++ b/tests/components/binary_sensor/test_device_condition.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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_trigger.py b/tests/components/binary_sensor/test_device_trigger.py index 7f2cf7a5ba57..49ae9e017caa 100644 --- a/tests/components/binary_sensor/test_device_trigger.py +++ b/tests/components/binary_sensor/test_device_trigger.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/blueprint/common.py b/tests/components/blueprint/common.py index 28dad51d4f47..f1ccf63b26a6 100644 --- a/tests/components/blueprint/common.py +++ b/tests/components/blueprint/common.py @@ -1,9 +1,11 @@ """Blueprints test helpers.""" +from collections.abc import Generator +from typing import Any from unittest.mock import patch -def stub_blueprint_populate_fixture_helper(): +def stub_blueprint_populate_fixture_helper() -> Generator[None, Any, None]: """Stub copying the blueprints to the config folder.""" with patch( "homeassistant.components.blueprint.models.DomainBlueprints.async_populate" diff --git a/tests/components/blueprint/conftest.py b/tests/components/blueprint/conftest.py index 2f54fb6092e3..21cc17ef1ba6 100644 --- a/tests/components/blueprint/conftest.py +++ b/tests/components/blueprint/conftest.py @@ -4,5 +4,5 @@ import pytest @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/climate/test_device_action.py b/tests/components/climate/test_device_action.py index afbbccf70ecc..30fe9c92dc61 100644 --- a/tests/components/climate/test_device_action.py +++ b/tests/components/climate/test_device_action.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/climate/test_device_condition.py b/tests/components/climate/test_device_condition.py index 7d90e92101c7..2feb8073f07c 100644 --- a/tests/components/climate/test_device_condition.py +++ b/tests/components/climate/test_device_condition.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/climate/test_device_trigger.py b/tests/components/climate/test_device_trigger.py index 14d21b41e019..0cfb0a896b35 100644 --- a/tests/components/climate/test_device_trigger.py +++ b/tests/components/climate/test_device_trigger.py @@ -30,7 +30,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/config/test_automation.py b/tests/components/config/test_automation.py index 5122c7ec7497..ac6780c09724 100644 --- a/tests/components/config/test_automation.py +++ b/tests/components/config/test_automation.py @@ -14,7 +14,7 @@ from tests.typing import ClientSessionGenerator @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/config/test_device_registry.py b/tests/components/config/test_device_registry.py index aa08a705f46d..25b465192cf4 100644 --- a/tests/components/config/test_device_registry.py +++ b/tests/components/config/test_device_registry.py @@ -11,7 +11,7 @@ from tests.typing import WebSocketGenerator @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/config/test_script.py b/tests/components/config/test_script.py index 934d7ef7b895..fd1aed1b7508 100644 --- a/tests/components/config/test_script.py +++ b/tests/components/config/test_script.py @@ -14,7 +14,7 @@ from tests.typing import ClientSessionGenerator @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/conftest.py b/tests/components/conftest.py index 1deb857c3156..c985565b1bea 100644 --- a/tests/components/conftest.py +++ b/tests/components/conftest.py @@ -37,7 +37,7 @@ def entity_registry_enabled_by_default() -> Generator[None, None, None]: # Blueprint test fixtures @pytest.fixture(name="stub_blueprint_populate") -def stub_blueprint_populate_fixture(): +def stub_blueprint_populate_fixture() -> Generator[None, Any, None]: """Stub copying the blueprints to the config folder.""" from tests.components.blueprint.common import stub_blueprint_populate_fixture_helper diff --git a/tests/components/cover/test_device_action.py b/tests/components/cover/test_device_action.py index a67c84a50596..17f6e2185e92 100644 --- a/tests/components/cover/test_device_action.py +++ b/tests/components/cover/test_device_action.py @@ -20,7 +20,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/cover/test_device_condition.py b/tests/components/cover/test_device_condition.py index 1eb3aa22a06b..f1afe6c6d6bd 100644 --- a/tests/components/cover/test_device_condition.py +++ b/tests/components/cover/test_device_condition.py @@ -28,7 +28,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/cover/test_device_trigger.py b/tests/components/cover/test_device_trigger.py index ef391707a9b2..6d70acd7f011 100644 --- a/tests/components/cover/test_device_trigger.py +++ b/tests/components/cover/test_device_trigger.py @@ -31,7 +31,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/deconz/test_device_trigger.py b/tests/components/deconz/test_device_trigger.py index 2d87358ebb0b..e26a22b02e45 100644 --- a/tests/components/deconz/test_device_trigger.py +++ b/tests/components/deconz/test_device_trigger.py @@ -40,7 +40,7 @@ from tests.test_util.aiohttp import AiohttpClientMocker @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/default_config/test_init.py b/tests/components/default_config/test_init.py index 846cb3c40f62..f3907aac5480 100644 --- a/tests/components/default_config/test_init.py +++ b/tests/components/default_config/test_init.py @@ -9,7 +9,7 @@ from homeassistant.setup import async_setup_component @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/demo/conftest.py b/tests/components/demo/conftest.py index 6edcf4959183..6cfd1a33f9cc 100644 --- a/tests/components/demo/conftest.py +++ b/tests/components/demo/conftest.py @@ -8,7 +8,7 @@ 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): +def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: """Stub copying the blueprints to the config folder.""" diff --git a/tests/components/device_automation/test_init.py b/tests/components/device_automation/test_init.py index 8b082f26de4e..d48fb520eba3 100644 --- a/tests/components/device_automation/test_init.py +++ b/tests/components/device_automation/test_init.py @@ -32,7 +32,7 @@ from tests.typing import WebSocketGenerator @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/device_automation/test_toggle_entity.py b/tests/components/device_automation/test_toggle_entity.py index 8f12a3fc5d20..f02704cdc135 100644 --- a/tests/components/device_automation/test_toggle_entity.py +++ b/tests/components/device_automation/test_toggle_entity.py @@ -13,7 +13,7 @@ from tests.common import async_fire_time_changed, async_mock_service @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/device_tracker/test_device_condition.py b/tests/components/device_tracker/test_device_condition.py index 2089722389d4..4ef22f77ca31 100644 --- a/tests/components/device_tracker/test_device_condition.py +++ b/tests/components/device_tracker/test_device_condition.py @@ -19,7 +19,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/device_tracker/test_device_trigger.py b/tests/components/device_tracker/test_device_trigger.py index 517295774bf7..677e5e1d5477 100644 --- a/tests/components/device_tracker/test_device_trigger.py +++ b/tests/components/device_tracker/test_device_trigger.py @@ -25,7 +25,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/emulated_hue/conftest.py b/tests/components/emulated_hue/conftest.py index 652ca6536e30..e25a2099227f 100644 --- a/tests/components/emulated_hue/conftest.py +++ b/tests/components/emulated_hue/conftest.py @@ -4,5 +4,5 @@ import pytest @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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_device_action.py b/tests/components/fan/test_device_action.py index 195eb932d7a5..80d3dfd2b50b 100644 --- a/tests/components/fan/test_device_action.py +++ b/tests/components/fan/test_device_action.py @@ -19,7 +19,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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_device_condition.py b/tests/components/fan/test_device_condition.py index 516cdea1e6a0..acb206741b3e 100644 --- a/tests/components/fan/test_device_condition.py +++ b/tests/components/fan/test_device_condition.py @@ -19,7 +19,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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_device_trigger.py b/tests/components/fan/test_device_trigger.py index cb2b557dcadf..61c49e7e6eaa 100644 --- a/tests/components/fan/test_device_trigger.py +++ b/tests/components/fan/test_device_trigger.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/geo_location/test_trigger.py b/tests/components/geo_location/test_trigger.py index 8fcbc9d2f55c..a5e0f99c5c2c 100644 --- a/tests/components/geo_location/test_trigger.py +++ b/tests/components/geo_location/test_trigger.py @@ -17,7 +17,7 @@ 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): +def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: """Stub copying the blueprints to the config folder.""" diff --git a/tests/components/homeassistant/triggers/conftest.py b/tests/components/homeassistant/triggers/conftest.py index 9f53537819b7..9dabbad99c9d 100644 --- a/tests/components/homeassistant/triggers/conftest.py +++ b/tests/components/homeassistant/triggers/conftest.py @@ -4,5 +4,5 @@ import pytest @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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 580f46fb821e..d98c07a1728d 100644 --- a/tests/components/homekit_controller/test_device_trigger.py +++ b/tests/components/homekit_controller/test_device_trigger.py @@ -21,7 +21,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/humidifier/test_device_action.py b/tests/components/humidifier/test_device_action.py index 1bcb09d45837..3312c2634583 100644 --- a/tests/components/humidifier/test_device_action.py +++ b/tests/components/humidifier/test_device_action.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/humidifier/test_device_condition.py b/tests/components/humidifier/test_device_condition.py index 5671cce70e06..dcd4245e401c 100644 --- a/tests/components/humidifier/test_device_condition.py +++ b/tests/components/humidifier/test_device_condition.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/humidifier/test_device_trigger.py b/tests/components/humidifier/test_device_trigger.py index 72d1e8c93327..e6e0d4bdb4d0 100644 --- a/tests/components/humidifier/test_device_trigger.py +++ b/tests/components/humidifier/test_device_trigger.py @@ -34,7 +34,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/kodi/test_device_trigger.py b/tests/components/kodi/test_device_trigger.py index 140a77839f9a..59d8a5148cf0 100644 --- a/tests/components/kodi/test_device_trigger.py +++ b/tests/components/kodi/test_device_trigger.py @@ -19,7 +19,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/light/test_device_action.py b/tests/components/light/test_device_action.py index c37827f8f17c..ef1d653fbd9a 100644 --- a/tests/components/light/test_device_action.py +++ b/tests/components/light/test_device_action.py @@ -27,7 +27,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/light/test_device_condition.py b/tests/components/light/test_device_condition.py index 5496f93d4b37..42790cc91cbf 100644 --- a/tests/components/light/test_device_condition.py +++ b/tests/components/light/test_device_condition.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/light/test_device_trigger.py b/tests/components/light/test_device_trigger.py index d65c70407614..18f3555aaf78 100644 --- a/tests/components/light/test_device_trigger.py +++ b/tests/components/light/test_device_trigger.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/litejet/test_trigger.py b/tests/components/litejet/test_trigger.py index d8042ea456ca..e3d7caad65e3 100644 --- a/tests/components/litejet/test_trigger.py +++ b/tests/components/litejet/test_trigger.py @@ -17,7 +17,7 @@ from tests.common import async_fire_time_changed_exact, async_mock_service @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/lock/test_device_action.py b/tests/components/lock/test_device_action.py index 56c6f82c6a87..682467bf4754 100644 --- a/tests/components/lock/test_device_action.py +++ b/tests/components/lock/test_device_action.py @@ -19,7 +19,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/lock/test_device_condition.py b/tests/components/lock/test_device_condition.py index 9440636eebd0..32341d15e7b9 100644 --- a/tests/components/lock/test_device_condition.py +++ b/tests/components/lock/test_device_condition.py @@ -26,7 +26,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/lock/test_device_trigger.py b/tests/components/lock/test_device_trigger.py index a761352492dd..13340fbe6682 100644 --- a/tests/components/lock/test_device_trigger.py +++ b/tests/components/lock/test_device_trigger.py @@ -31,7 +31,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/logbook/conftest.py b/tests/components/logbook/conftest.py index e2626047d99e..8795ba3c018a 100644 --- a/tests/components/logbook/conftest.py +++ b/tests/components/logbook/conftest.py @@ -4,5 +4,5 @@ import pytest @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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 2bb8d52c75d6..d70a9a90893f 100644 --- a/tests/components/media_player/test_device_condition.py +++ b/tests/components/media_player/test_device_condition.py @@ -27,7 +27,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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_trigger.py b/tests/components/media_player/test_device_trigger.py index 1a95fb87aba5..d8d91c3495bf 100644 --- a/tests/components/media_player/test_device_trigger.py +++ b/tests/components/media_player/test_device_trigger.py @@ -32,7 +32,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/mqtt/test_device_trigger.py b/tests/components/mqtt/test_device_trigger.py index e37e7c6cb870..9954b0f9ba46 100644 --- a/tests/components/mqtt/test_device_trigger.py +++ b/tests/components/mqtt/test_device_trigger.py @@ -26,7 +26,7 @@ from tests.typing import MqttMockHAClient, MqttMockHAClientGenerator, WebSocketG @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/mqtt/test_trigger.py b/tests/components/mqtt/test_trigger.py index 675acf7750de..97ded1f22947 100644 --- a/tests/components/mqtt/test_trigger.py +++ b/tests/components/mqtt/test_trigger.py @@ -12,7 +12,7 @@ from tests.common import async_fire_mqtt_message, async_mock_service, mock_compo @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/number/test_device_action.py b/tests/components/number/test_device_action.py index 7d6e4a8520c2..9cd8d3d4943e 100644 --- a/tests/components/number/test_device_action.py +++ b/tests/components/number/test_device_action.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/philips_js/test_device_trigger.py b/tests/components/philips_js/test_device_trigger.py index ae492ade3ece..339b30d63555 100644 --- a/tests/components/philips_js/test_device_trigger.py +++ b/tests/components/philips_js/test_device_trigger.py @@ -15,7 +15,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/remote/test_device_action.py b/tests/components/remote/test_device_action.py index 13c6da5f778e..d652f4d869d0 100644 --- a/tests/components/remote/test_device_action.py +++ b/tests/components/remote/test_device_action.py @@ -19,7 +19,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/remote/test_device_condition.py b/tests/components/remote/test_device_condition.py index ba6cc9fe4f46..a0899daf0afa 100644 --- a/tests/components/remote/test_device_condition.py +++ b/tests/components/remote/test_device_condition.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/remote/test_device_trigger.py b/tests/components/remote/test_device_trigger.py index 2f39486a0fee..fdd7b9e73ed1 100644 --- a/tests/components/remote/test_device_trigger.py +++ b/tests/components/remote/test_device_trigger.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/script/conftest.py b/tests/components/script/conftest.py index e2626047d99e..8795ba3c018a 100644 --- a/tests/components/script/conftest.py +++ b/tests/components/script/conftest.py @@ -4,5 +4,5 @@ import pytest @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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 e6f7d656f733..4ee6f46c2f86 100644 --- a/tests/components/search/test_init.py +++ b/tests/components/search/test_init.py @@ -16,7 +16,7 @@ from tests.typing import WebSocketGenerator @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/sensor/test_device_condition.py b/tests/components/sensor/test_device_condition.py index 90479927d57c..dcd7e16a514e 100644 --- a/tests/components/sensor/test_device_condition.py +++ b/tests/components/sensor/test_device_condition.py @@ -30,7 +30,7 @@ from tests.testing_config.custom_components.test.sensor import UNITS_OF_MEASUREM @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/sensor/test_device_trigger.py b/tests/components/sensor/test_device_trigger.py index e360117987c0..010c947e7ab3 100644 --- a/tests/components/sensor/test_device_trigger.py +++ b/tests/components/sensor/test_device_trigger.py @@ -34,7 +34,7 @@ from tests.testing_config.custom_components.test.sensor import UNITS_OF_MEASUREM @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/sun/test_trigger.py b/tests/components/sun/test_trigger.py index 988e069ac5ff..9d8f5d82a511 100644 --- a/tests/components/sun/test_trigger.py +++ b/tests/components/sun/test_trigger.py @@ -22,7 +22,7 @@ from tests.common import async_fire_time_changed, async_mock_service, mock_compo @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/switch/test_device_action.py b/tests/components/switch/test_device_action.py index fbdd2716fcad..623629e4b91c 100644 --- a/tests/components/switch/test_device_action.py +++ b/tests/components/switch/test_device_action.py @@ -19,7 +19,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/switch/test_device_condition.py b/tests/components/switch/test_device_condition.py index 08e4487750d6..22f5a562dafa 100644 --- a/tests/components/switch/test_device_condition.py +++ b/tests/components/switch/test_device_condition.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/switch/test_device_trigger.py b/tests/components/switch/test_device_trigger.py index c971a9011c95..58ffa7e7c189 100644 --- a/tests/components/switch/test_device_trigger.py +++ b/tests/components/switch/test_device_trigger.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/tag/test_trigger.py b/tests/components/tag/test_trigger.py index 12c072b8f2b8..2780b9280275 100644 --- a/tests/components/tag/test_trigger.py +++ b/tests/components/tag/test_trigger.py @@ -12,7 +12,7 @@ from tests.common import async_mock_service @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/tasmota/test_device_trigger.py b/tests/components/tasmota/test_device_trigger.py index 05e31daa441d..fe3240790dde 100644 --- a/tests/components/tasmota/test_device_trigger.py +++ b/tests/components/tasmota/test_device_trigger.py @@ -26,7 +26,7 @@ from tests.typing import MqttMockHAClient, WebSocketGenerator @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/text/test_device_action.py b/tests/components/text/test_device_action.py index bcc35cd66d4a..523a39c56409 100644 --- a/tests/components/text/test_device_action.py +++ b/tests/components/text/test_device_action.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/trace/conftest.py b/tests/components/trace/conftest.py index d5f8dece98f3..01dc57a99482 100644 --- a/tests/components/trace/conftest.py +++ b/tests/components/trace/conftest.py @@ -4,5 +4,5 @@ import pytest @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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 768d3efede10..bddcefa07c5b 100644 --- a/tests/components/update/test_device_trigger.py +++ b/tests/components/update/test_device_trigger.py @@ -23,7 +23,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/vacuum/test_device_action.py b/tests/components/vacuum/test_device_action.py index b4bef23e9389..643d9ad0130e 100644 --- a/tests/components/vacuum/test_device_action.py +++ b/tests/components/vacuum/test_device_action.py @@ -19,7 +19,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/vacuum/test_device_condition.py b/tests/components/vacuum/test_device_condition.py index ec73ac441b73..b1ed65d689f7 100644 --- a/tests/components/vacuum/test_device_condition.py +++ b/tests/components/vacuum/test_device_condition.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/vacuum/test_device_trigger.py b/tests/components/vacuum/test_device_trigger.py index 62ced757c038..84519a805458 100644 --- a/tests/components/vacuum/test_device_trigger.py +++ b/tests/components/vacuum/test_device_trigger.py @@ -24,7 +24,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/water_heater/test_device_action.py b/tests/components/water_heater/test_device_action.py index 65b04b33351e..b1e12dcab947 100644 --- a/tests/components/water_heater/test_device_action.py +++ b/tests/components/water_heater/test_device_action.py @@ -19,7 +19,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/webhook/test_trigger.py b/tests/components/webhook/test_trigger.py index 2848a3fb759f..327fc428cd06 100644 --- a/tests/components/webhook/test_trigger.py +++ b/tests/components/webhook/test_trigger.py @@ -11,7 +11,7 @@ from tests.typing import ClientSessionGenerator @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/zha/test_device_action.py b/tests/components/zha/test_device_action.py index 6566a3093356..f1ab44f69eb2 100644 --- a/tests/components/zha/test_device_action.py +++ b/tests/components/zha/test_device_action.py @@ -27,7 +27,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/zha/test_device_trigger.py b/tests/components/zha/test_device_trigger.py index 3538ba44c556..85e012c5bfb2 100644 --- a/tests/components/zha/test_device_trigger.py +++ b/tests/components/zha/test_device_trigger.py @@ -27,7 +27,7 @@ from tests.common import ( @pytest.fixture(autouse=True, name="stub_blueprint_populate") -def stub_blueprint_populate_autouse(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/zone/test_trigger.py b/tests/components/zone/test_trigger.py index c359136ac08c..7f44cecefe1c 100644 --- a/tests/components/zone/test_trigger.py +++ b/tests/components/zone/test_trigger.py @@ -11,7 +11,7 @@ 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): +def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: """Stub copying the blueprints to the config folder."""