Fix mfi test (#43060)

This commit is contained in:
Paulus Schoutsen 2020-11-10 22:09:38 +01:00 committed by GitHub
parent 0eb473769f
commit b1c78554f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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