homekit_controller test cleanups (#32212)
This commit is contained in:
parent
e435f6eb67
commit
92a47f14bb
6 changed files with 11 additions and 19 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue