From 1af1f4db0c4aed72cb1be806b9f076e64eb69d6d Mon Sep 17 00:00:00 2001 From: Matthias Alphart Date: Sat, 6 May 2023 00:11:05 +0200 Subject: [PATCH] Fix devolo home lint errors from ruff (#92649) --- tests/components/devolo_home_network/conftest.py | 8 ++++---- tests/components/devolo_home_network/test_init.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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)],