Fix devolo home lint errors from ruff (#92649)

This commit is contained in:
Matthias Alphart 2023-05-06 00:11:05 +02:00 committed by GitHub
parent b195d5d1db
commit 1af1f4db0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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")

View File

@ -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)],