Prepare for new aiohomekit lifecycle API (#66340)
This commit is contained in:
parent
2f220b27d4
commit
0daf20c0cc
11 changed files with 79 additions and 28 deletions
|
@ -27,7 +27,10 @@ def utcnow(request):
|
|||
def controller(hass):
|
||||
"""Replace aiohomekit.Controller with an instance of aiohomekit.testing.FakeController."""
|
||||
instance = FakeController()
|
||||
with unittest.mock.patch("aiohomekit.Controller", return_value=instance):
|
||||
with unittest.mock.patch(
|
||||
"homeassistant.components.homekit_controller.utils.Controller",
|
||||
return_value=instance,
|
||||
):
|
||||
yield instance
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue