Handle accessories without a serial number in homekit_controller (#58498)

This commit is contained in:
J. Nick Koston 2021-10-27 06:24:57 -05:00 committed by GitHub
parent 3b7f620aad
commit 5581f58aad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 726 additions and 19 deletions

View file

@ -11,6 +11,10 @@ TRIGGERS = f"{DOMAIN}-triggers"
HOMEKIT_DIR = ".homekit"
PAIRING_FILE = "pairing.json"
IDENTIFIER_SERIAL_NUMBER = "serial-number"
IDENTIFIER_ACCESSORY_ID = "accessory-id"
# Mapping from Homekit type to component.
HOMEKIT_ACCESSORY_DISPATCH = {
"lightbulb": "light",