From 5e3f23b6a2469dd7b7ea98ec2bfbf6fb1d6f587e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 27 Feb 2026 20:37:24 +0100 Subject: [PATCH] Fix mock target for Met Office config flow error test (#164391) --- tests/components/metoffice/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/components/metoffice/conftest.py b/tests/components/metoffice/conftest.py index dc64cc8dfb10..6468a9ea2f89 100644 --- a/tests/components/metoffice/conftest.py +++ b/tests/components/metoffice/conftest.py @@ -9,7 +9,9 @@ import pytest @pytest.fixture def mock_simple_manager_fail(): """Mock datapoint Manager with default values for testing in config_flow.""" - with patch("datapoint.Manager.Manager") as mock_manager: + with patch( + "homeassistant.components.metoffice.config_flow.Manager" + ) as mock_manager: instance = mock_manager.return_value instance.get_forecast = APIException() instance.latitude = None