mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Fix ZHA tests (#94588)
This commit is contained in:
parent
4ac2dd3de7
commit
e5b2801f5b
@ -48,6 +48,19 @@ def disable_platform_only():
|
|||||||
yield
|
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)
|
@pytest.fixture(autouse=True)
|
||||||
def reduce_reconnect_timeout():
|
def reduce_reconnect_timeout():
|
||||||
"""Reduces reconnect timeout to speed up tests."""
|
"""Reduces reconnect timeout to speed up tests."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user