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