mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 21:40:16 +00:00
Avoid creating tasks to run homekit accessories (#110895)
This commit is contained in:
@@ -982,7 +982,7 @@ async def test_homekit_reload_accessory_in_accessory_mode(
|
||||
with patch(f"{PATH_HOMEKIT}.HomeKit", return_value=homekit):
|
||||
await async_init_entry(hass, entry)
|
||||
primary_accessory = homekit.driver.accessory
|
||||
await primary_accessory.run()
|
||||
primary_accessory.run()
|
||||
assert type(primary_accessory).__name__ == "Switch"
|
||||
await hass.async_block_till_done()
|
||||
assert homekit.status == STATUS_RUNNING
|
||||
|
||||
Reference in New Issue
Block a user