mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Fix homekit_controller non-standard hk characteristics (#20824)
This commit is contained in:
parent
21583d25e2
commit
5a762c74f4
@ -224,7 +224,12 @@ class HomeKitEntity(Entity):
|
|||||||
if service['iid'] != self._iid:
|
if service['iid'] != self._iid:
|
||||||
continue
|
continue
|
||||||
for char in service['characteristics']:
|
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:
|
if uuid not in characteristic_types:
|
||||||
continue
|
continue
|
||||||
self._setup_characteristic(char)
|
self._setup_characteristic(char)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user