Poll HomeKit Controller locks for state after lock operation (#82058)

This commit is contained in:
J. Nick Koston 2022-11-14 10:54:28 -06:00 committed by GitHub
parent bbda122c99
commit 1ded3ac51e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 2 deletions

View file

@ -107,3 +107,10 @@ STARTUP_EXCEPTIONS = (
EncryptionError,
AccessoryDisconnectedError,
)
# 10 seconds was chosen because its soon enough
# for most state changes to happen but not too
# long that the BLE connection is dropped. It
# also happens to be the same value used by
# the update coordinator.
DEBOUNCE_COOLDOWN = 10 # seconds