forked from home-assistant/core
Reduce homekit executor calls at start (#49925)
- We do not need to load/persist since we do it in setup
This commit is contained in:
@@ -675,7 +675,8 @@ class HomeKit:
|
||||
self.add_bridge_accessory(state)
|
||||
acc = self.bridge
|
||||
|
||||
await self.hass.async_add_executor_job(self.driver.add_accessory, acc)
|
||||
# No need to load/persist as we do it in setup
|
||||
self.driver.accessory = acc
|
||||
|
||||
async def async_stop(self, *args):
|
||||
"""Stop the accessory driver."""
|
||||
|
Reference in New Issue
Block a user