mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
Fix ZHA tests (#94588)
This commit is contained in:
@@ -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."""
|
||||
|
Reference in New Issue
Block a user