Skip to content

Commit 64ff872

Browse files
authored
Filter intermediate decryption decoder properties from auto-discovery (#296)
Filter "cipher", "ctr", "mic" from being auto-discovered
1 parent 0120ad5 commit 64ff872

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

TheengsGateway/discovery.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ def publish_device_info(self, pub_device) -> None: # noqa: ANN001
161161
pub_device,
162162
hadevice,
163163
)
164-
# If the properties key is "mac" or "device", skip its discovery
165-
if k in {"mac", "device"}:
164+
# If the properties key is "mac" or "device", or any of the
165+
# intermediate decryption decoder properties, skip its discovery
166+
if k in {"mac", "device", "cipher", "ctr", "mic"}:
166167
continue
167168
if k in pub_device["properties"]:
168169
if pub_device["properties"][k]["name"] in ha_dev_classes:

0 commit comments

Comments
 (0)