From e5b2801f5bfb4c2819eaafd920a2a88b694e9366 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 14 Jun 2023 14:21:34 +0200 Subject: [PATCH] Fix ZHA tests (#94588) --- tests/components/zha/test_config_flow.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/components/zha/test_config_flow.py b/tests/components/zha/test_config_flow.py index 7c0d3eac2a9..48c45dd241d 100644 --- a/tests/components/zha/test_config_flow.py +++ b/tests/components/zha/test_config_flow.py @@ -48,6 +48,19 @@ def disable_platform_only(): yield +@pytest.fixture(autouse=True) +def mock_multipan_platform(): + """Mock the multipan platform.""" + with patch( + "homeassistant.components.zha.silabs_multiprotocol.async_get_channel", + return_value=None, + ), patch( + "homeassistant.components.zha.silabs_multiprotocol.async_using_multipan", + return_value=False, + ): + yield + + @pytest.fixture(autouse=True) def reduce_reconnect_timeout(): """Reduces reconnect timeout to speed up tests."""