Skip to content

Commit

Permalink
enable description on events
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Sep 7, 2023
1 parent 78c3180 commit 8be43f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/py_matter_idl/matter_idl/matter_idl_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class Event:
fields: List[Field]
readacl: AccessPrivilege = AccessPrivilege.VIEW
qualities: EventQuality = EventQuality.NONE
description: Optional[str] = None

@property
def is_fabric_sensitive(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def GetNextProcessor(self, name: str, attrs):
self._event.readacl = AttrsToAccessPrivilege(attrs)
return BaseHandler(self.context, handled=HandledDepth.SINGLE_TAG)
elif name.lower() == 'description':
return BaseHandler(self.context, handled=HandledDepth.SINGLE_TAG)
return DescriptionHandler(self.context, self._event)
else:
return BaseHandler(self.context)

Expand Down

0 comments on commit 8be43f7

Please sign in to comment.