mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 02:07:54 +00:00
Fix devolo home lint errors from ruff (#92649)
This commit is contained in:
parent
b195d5d1db
commit
1af1f4db0c
@ -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")
|
||||
|
@ -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)],
|
||||
|
Loading…
x
Reference in New Issue
Block a user