1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-23 12:29:55 +00:00

Prepare for new aiohomekit lifecycle API (#66340)

This commit is contained in:
Jc2k
2022-02-11 19:26:35 +00:00
committed by GitHub
parent 2f220b27d4
commit 0daf20c0cc
11 changed files with 79 additions and 28 deletions

View File

@@ -174,7 +174,9 @@ async def setup_platform(hass):
"""Load the platform but with a fake Controller API."""
config = {"discovery": {}}
with mock.patch("aiohomekit.Controller") as controller:
with mock.patch(
"homeassistant.components.homekit_controller.utils.Controller"
) as controller:
fake_controller = controller.return_value = FakeController()
await async_setup_component(hass, DOMAIN, config)