mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
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
@ -675,7 +675,8 @@ class HomeKit:
|
|||||||
self.add_bridge_accessory(state)
|
self.add_bridge_accessory(state)
|
||||||
acc = self.bridge
|
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):
|
async def async_stop(self, *args):
|
||||||
"""Stop the accessory driver."""
|
"""Stop the accessory driver."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user