diff --git a/tests/conftest.py b/tests/conftest.py index ac3e06d..9d15176 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,6 +14,11 @@ pytest_plugins = "pytest_homeassistant_custom_component" +@pytest.fixture(autouse=True) +def mock_bluetooth(enable_bluetooth): + """Auto mock bluetooth.""" + + # This fixture enables loading custom integrations in all tests. # Remove to enable selective use of this fixture @pytest.fixture(autouse=True) @@ -60,11 +65,6 @@ def error_get_data_fixture(): yield -@pytest.fixture(autouse=True) -def mock_bluetooth(enable_bluetooth): - """Auto mock bluetooth.""" - - # This fixture ensures that the config flow gets service info for the anticipated address # to go into configured_devices @pytest.fixture(autouse=True) diff --git a/tests/test_config_flow.py b/tests/test_config_flow.py index 55a0915..c425448 100644 --- a/tests/test_config_flow.py +++ b/tests/test_config_flow.py @@ -7,6 +7,7 @@ import pytest from homeassistant import config_entries from homeassistant import data_entry_flow +from homeassistant.core import HomeAssistant # noqa: F401 from pytest_homeassistant_custom_component.common import MockConfigEntry from custom_components.bermuda.const import DOMAIN