Add code to HomeKit lock (#14524)

This commit is contained in:
cdce8p 2018-05-18 13:52:52 +02:00 committed by GitHub
parent cc5edf69e3
commit 4c328baaa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 4 deletions

View file

@ -30,7 +30,7 @@ def validate_entity_config(values):
domain, _ = split_entity_id(entity)
if domain == 'alarm_control_panel':
if domain in ('alarm_control_panel', 'lock'):
code = config.get(ATTR_CODE)
params[ATTR_CODE] = cv.string(code) if code else None