mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Fix incorrect blueprint type hints in tests (#118694)
This commit is contained in:
parent
d5eebb202b
commit
77c627e6f3
@ -1,11 +1,10 @@
|
|||||||
"""Blueprints test helpers."""
|
"""Blueprints test helpers."""
|
||||||
|
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from typing import Any
|
|
||||||
from unittest.mock import patch
|
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."""
|
"""Stub copying the blueprints to the config folder."""
|
||||||
with patch(
|
with patch(
|
||||||
"homeassistant.components.blueprint.models.DomainBlueprints.async_populate"
|
"homeassistant.components.blueprint.models.DomainBlueprints.async_populate"
|
||||||
|
@ -50,7 +50,7 @@ def entity_registry_enabled_by_default() -> Generator[None, None, None]:
|
|||||||
|
|
||||||
# Blueprint test fixtures
|
# Blueprint test fixtures
|
||||||
@pytest.fixture(name="stub_blueprint_populate")
|
@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."""
|
"""Stub copying the blueprints to the config folder."""
|
||||||
from tests.components.blueprint.common import stub_blueprint_populate_fixture_helper
|
from tests.components.blueprint.common import stub_blueprint_populate_fixture_helper
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user