Await startup in homekit controller (#75021)

This commit is contained in:
J. Nick Koston
2022-07-14 14:44:27 +02:00
committed by GitHub
parent a3c1926da5
commit a31dde9cb4
7 changed files with 133 additions and 30 deletions

View File

@@ -186,6 +186,13 @@ async def setup_platform(hass):
async def setup_test_accessories(hass, accessories):
"""Load a fake homekit device based on captured JSON profile."""
fake_controller = await setup_platform(hass)
return await setup_test_accessories_with_controller(
hass, accessories, fake_controller
)
async def setup_test_accessories_with_controller(hass, accessories, fake_controller):
"""Load a fake homekit device based on captured JSON profile."""
pairing_id = "00:00:00:00:00:00"