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:
parent
55d1d3d8ae
commit
ee3631e93e
@ -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…
Reference in New Issue
Block a user