Fix homekit_controller non-standard hk characteristics (#20824)
This commit is contained in:
parent
55d1d3d8ae
commit
ee3631e93e
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue