Add support for HomeKit Controller Locks (#19867)
* Added HomeKit Controller Lock * cleaned up code according to standards * fixed lint issues * added private constant for jammed state * removed state_unknown
This commit is contained in:
1 parent
5ab3c7b765
commit
7676b3fbe8
2 files changed
+113
No files matched your search
@@ -25,6 +25,7 @@ HOMEKIT_ACCESSORY_DISPATCH = {
|
||||
'switch': 'switch',
|
||||
'thermostat': 'climate',
|
||||
'security-system': 'alarm_control_panel',
|
||||
'lock-mechanism': 'lock'
|
||||
}
|
||||
|
||||
HOMEKIT_IGNORE = [
|
||||
@@ -116,6 +117,7 @@ class HKDevice():
|
||||
for service in accessory['services']:
|
||||
service_info = {'serial': serial,
|
||||
'aid': aid,
|
||||
'model': self.model,
|
||||
'iid': service['iid']}
|
||||
devtype = ServicesTypes.get_short(service['type'])
|
||||
_LOGGER.debug("Found %s", devtype)
|
||||
|
||||
Reference in new issue
Block a user