homekit_controller test cleanups (#32212)
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user