diff --git a/tests/components/shelly/conftest.py b/tests/components/shelly/conftest.py index 51659cf7736..71157124806 100644 --- a/tests/components/shelly/conftest.py +++ b/tests/components/shelly/conftest.py @@ -66,7 +66,7 @@ MOCK_SHELLY = { @pytest.fixture(autouse=True) def mock_coap(): """Mock out coap.""" - with patch("homeassistant.components.shelly.get_coap_context"): + with patch("homeassistant.components.shelly.utils.get_coap_context"): yield