diff --git a/tests/components/melcloud/test_config_flow.py b/tests/components/melcloud/test_config_flow.py index e6b36306986..ab3d16a0d6a 100644 --- a/tests/components/melcloud/test_config_flow.py +++ b/tests/components/melcloud/test_config_flow.py @@ -16,7 +16,9 @@ from tests.common import MockConfigEntry @pytest.fixture def mock_login(): """Mock pymelcloud login.""" - with patch("pymelcloud.login") as mock: + with patch( + "homeassistant.components.melcloud.config_flow.pymelcloud.login" + ) as mock: mock.return_value = "test-token" yield mock @@ -24,7 +26,9 @@ def mock_login(): @pytest.fixture def mock_get_devices(): """Mock pymelcloud get_devices.""" - with patch("pymelcloud.get_devices") as mock: + with patch( + "homeassistant.components.melcloud.config_flow.pymelcloud.get_devices" + ) as mock: mock.return_value = { pymelcloud.DEVICE_TYPE_ATA: [], pymelcloud.DEVICE_TYPE_ATW: [],