diff --git a/scripts/py_matter_yamltests/matter_yamltests/constraints.py b/scripts/py_matter_yamltests/matter_yamltests/constraints.py index 572da6362aa266..7c3e2f99cc5dfd 100644 --- a/scripts/py_matter_yamltests/matter_yamltests/constraints.py +++ b/scripts/py_matter_yamltests/matter_yamltests/constraints.py @@ -232,6 +232,8 @@ def check_response(self, value, value_type_name) -> bool: success = False if self._type == 'boolean' and type(value) is bool: success = True + elif self._type == 'struct' and type(value) is dict: + success = True elif self._type == 'list' and type(value) is list: success = True elif self._type == 'char_string' and type(value) is str: @@ -367,6 +369,8 @@ def get_reason(self, value, value_type_name) -> str: if type(value) is bool: types.append('boolean') + elif type(value) is dict: + types.append('struct') elif type(value) is list: types.append('list') elif type(value) is str: