Fix incorrect blueprint type hints in tests (#118694)

This commit is contained in:
epenet 2024-06-03 10:19:13 +02:00 committed by GitHub
parent d5eebb202b
commit 77c627e6f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -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"

View File

@ -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