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:
parent
e1a3ef3d69
commit
7ead482082
1 changed files with 2 additions and 1 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Reference in a new issue