mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix mfi test (#43060)
This commit is contained in:
parent
0eb473769f
commit
b1c78554f2
@ -94,7 +94,7 @@ async def test_setup_adds_proper_devices(hass):
|
||||
with mock.patch(
|
||||
"homeassistant.components.mfi.sensor.MFiClient"
|
||||
) as mock_client, mock.patch(
|
||||
"homeassistant.components.mfi.sensor.MfiSensor"
|
||||
"homeassistant.components.mfi.sensor.MfiSensor", side_effect=mfi.MfiSensor
|
||||
) as mock_sensor:
|
||||
ports = {
|
||||
i: mock.MagicMock(model=model) for i, model in enumerate(mfi.SENSOR_MODELS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user