Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to CHIP version a1643eee5e (2022-08-10 00:03:09 -0700) #60

Merged
merged 8 commits into from
Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions matter_server/common/json_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ def strip_vendorized_namespace(namespace):
def asdict_typed(obj, dict_factory):
if is_dataclass(obj) and not isinstance(obj, type):
cls = type(obj)

# Some (non-compliant) devices (e.g. all-clusters-app) causes TLV decoding errors
# Ignore those when serializing...
if (
cls.__module__ == CLUSTER_ATTRIBUTE_NAMESPACE
and cls.__qualname__ == "ValueDecodeFailure"
):
return None

result = []
for f in fields(obj):
value = asdict_typed(getattr(obj, f.name), dict_factory)
Expand Down
Loading