2018-05-21 04:25:53 +02:00
|
|
|
"""Collection of fixtures and functions for the HomeKit tests."""
|
2020-05-03 11:27:19 -07:00
|
|
|
from tests.async_mock import patch
|
2018-05-21 04:25:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
def patch_debounce():
|
|
|
|
"""Return patch for debounce method."""
|
2019-07-31 12:25:30 -07:00
|
|
|
return patch(
|
|
|
|
"homeassistant.components.homekit.accessories.debounce",
|
|
|
|
lambda f: lambda *args, **kwargs: f(*args, **kwargs),
|
|
|
|
)
|