From 77c627e6f3a5dc2442506684389d4d45bff18f68 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 3 Jun 2024 10:19:13 +0200 Subject: [PATCH] Fix incorrect blueprint type hints in tests (#118694) --- tests/components/blueprint/common.py | 3 +-- tests/components/conftest.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/components/blueprint/common.py b/tests/components/blueprint/common.py index f1ccf63b26a..45c6a94f401 100644 --- a/tests/components/blueprint/common.py +++ b/tests/components/blueprint/common.py @@ -1,11 +1,10 @@ """Blueprints test helpers.""" from collections.abc import Generator -from typing import Any from unittest.mock import patch -def stub_blueprint_populate_fixture_helper() -> Generator[None, Any, None]: +def stub_blueprint_populate_fixture_helper() -> Generator[None, None, None]: """Stub copying the blueprints to the config folder.""" with patch( "homeassistant.components.blueprint.models.DomainBlueprints.async_populate" diff --git a/tests/components/conftest.py b/tests/components/conftest.py index 5e480383513..8bbb3b83c22 100644 --- a/tests/components/conftest.py +++ b/tests/components/conftest.py @@ -50,7 +50,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() -> Generator[None, Any, None]: +def stub_blueprint_populate_fixture() -> Generator[None, None, None]: """Stub copying the blueprints to the config folder.""" from tests.components.blueprint.common import stub_blueprint_populate_fixture_helper