1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +02:00

Fix homekit_controller non-standard hk characteristics (#20824)

This commit is contained in:
Jc2k 2019-02-08 10:00:51 +00:00 committed by Martin Hjelmare
parent 55d1d3d8ae
commit ee3631e93e

View File

@ -224,7 +224,12 @@ class HomeKitEntity(Entity):
if service['iid'] != self._iid:
continue
for char in service['characteristics']:
uuid = CharacteristicsTypes.get_uuid(char['type'])
try:
uuid = CharacteristicsTypes.get_uuid(char['type'])
except KeyError:
# If a KeyError is raised its a non-standard
# characteristic. We must ignore it in this case.
continue
if uuid not in characteristic_types:
continue
self._setup_characteristic(char)