diff --git a/tests/components/devolo_home_network/conftest.py b/tests/components/devolo_home_network/conftest.py index 1eb91f7a48f..9f30ca74cb0 100644 --- a/tests/components/devolo_home_network/conftest.py +++ b/tests/components/devolo_home_network/conftest.py @@ -19,18 +19,18 @@ def mock_device(): yield device -@pytest.fixture() +@pytest.fixture def mock_repeater_device(mock_device: MockDevice): """Mock connecting to a devolo home network repeater device.""" mock_device.plcnet = None - yield mock_device + return mock_device -@pytest.fixture() +@pytest.fixture def mock_nonwifi_device(mock_device: MockDevice): """Mock connecting to a devolo home network device without wifi.""" mock_device.device.features = ["reset", "update", "led", "intmtg"] - yield mock_device + return mock_device @pytest.fixture(name="info") diff --git a/tests/components/devolo_home_network/test_init.py b/tests/components/devolo_home_network/test_init.py index 536053e149a..038028e66d3 100644 --- a/tests/components/devolo_home_network/test_init.py +++ b/tests/components/devolo_home_network/test_init.py @@ -81,7 +81,7 @@ async def test_hass_stop(hass: HomeAssistant, mock_device: MockDevice) -> None: @pytest.mark.parametrize( - "device, expected_platforms", + ("device", "expected_platforms"), [ ["mock_device", (BINARY_SENSOR, DEVICE_TRACKER, SENSOR, SWITCH)], ["mock_repeater_device", (DEVICE_TRACKER, SENSOR, SWITCH)],