core/tests/components/homekit/common.py

11 lines
317 B
Python
Raw Normal View History

"""Collection of fixtures and functions for the HomeKit tests."""
from unittest.mock import patch
def patch_debounce():
"""Return patch for debounce method."""
2019-07-31 19:25:30 +00:00
return patch(
"homeassistant.components.homekit.accessories.debounce",
lambda f: lambda *args, **kwargs: f(*args, **kwargs),
)