Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix devolo home lint errors from ruff #92649

Merged
merged 1 commit into from
May 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/components/devolo_home_network/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion tests/components/devolo_home_network/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)],
Expand Down