mirror of
https://github.com/home-assistant/core.git
synced 2025-11-08 18:39:30 +00:00
Fix mfi test (#43067)
This commit is contained in:
@@ -28,7 +28,7 @@ async def test_setup_adds_proper_devices(hass):
|
||||
with mock.patch(
|
||||
"homeassistant.components.mfi.switch.MFiClient"
|
||||
) as mock_client, mock.patch(
|
||||
"homeassistant.components.mfi.switch.MfiSwitch"
|
||||
"homeassistant.components.mfi.switch.MfiSwitch", side_effect=mfi.MfiSwitch
|
||||
) as mock_switch:
|
||||
ports = {
|
||||
i: mock.MagicMock(model=model) for i, model in enumerate(mfi.SWITCH_MODELS)
|
||||
|
||||
Reference in New Issue
Block a user