homekit_controller test cleanups (#32212)

This commit is contained in:
Jc2k authored and GitHub committed 2020-02-26 09:44:04 -08:00
1 parent e435f6eb67
commit 92a47f14bb
6 files changed
+11 -19

No files matched your search

@@ -98,11 +98,8 @@ async def setup_test_accessories(hass, accessories):
)
config_entry.add_to_hass(hass)
pairing_cls_loc = "homeassistant.components.homekit_controller.connection.IpPairing"
with mock.patch(pairing_cls_loc) as pairing_cls:
pairing_cls.return_value = pairing
await config_entry.async_setup(hass)
await hass.async_block_till_done()
await config_entry.async_setup(hass)
await hass.async_block_till_done()
return config_entry, pairing