Skip to content

Commit

Permalink
Fix devolo home lint errors from ruff (#92649)
Browse files Browse the repository at this point in the history
  • Loading branch information
farmio committed May 5, 2023
1 parent b195d5d commit 1af1f4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit 1af1f4d

Please sign in to comment.