Review feedback from #23191 (#23233)

pull/23242/head
Jc2k 2019-04-19 13:39:06 +01:00 committed by Charles Garwood
parent b3a8b0056b
commit 21a194f9d8
1 changed files with 5 additions and 1 deletions

View File

@ -161,7 +161,11 @@ async def async_setup(hass, config):
hass.data[CONTROLLER] = controller = homekit.Controller()
for hkid, pairing_data in load_old_pairings(hass).items():
old_pairings = await hass.async_add_executor_job(
load_old_pairings,
hass
)
for hkid, pairing_data in old_pairings.items():
controller.pairings[hkid] = IpPairing(pairing_data)
def discovery_dispatch(service, discovery_info):