2018-05-21 02:25:53 +00:00
|
|
|
"""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),
|
|
|
|
)
|