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:
J. Nick Koston 2021-04-30 11:54:54 -10:00 committed by GitHub
parent e1a3ef3d69
commit 7ead482082
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."""