Refactor homekit to use a dataclass for entry data (#101738)

This commit is contained in:
J. Nick Koston 2023-10-10 09:14:37 -10:00 committed by GitHub
parent 6c65db2036
commit 265f6653c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 52 additions and 38 deletions

View file

@ -6,13 +6,10 @@ from homeassistant.const import CONF_DEVICES
DEBOUNCE_TIMEOUT = 0.5
DEVICE_PRECISION_LEEWAY = 6
DOMAIN = "homekit"
PERSIST_LOCK_DATA = f"{DOMAIN}_persist_lock"
HOMEKIT_FILE = ".homekit.state"
HOMEKIT_PAIRING_QR = "homekit-pairing-qr"
HOMEKIT_PAIRING_QR_SECRET = "homekit-pairing-qr-secret"
HOMEKIT = "homekit"
SHUTDOWN_TIMEOUT = 30
CONF_ENTRY_INDEX = "index"
PERSIST_LOCK = "persist_lock"
# ### Codecs ####
VIDEO_CODEC_COPY = "copy"