diff --git a/scripts/py_matter_idl/matter_idl/generators/types.py b/scripts/py_matter_idl/matter_idl/generators/types.py index 87c24465237b33..19fa8bf35fd770 100644 --- a/scripts/py_matter_idl/matter_idl/generators/types.py +++ b/scripts/py_matter_idl/matter_idl/generators/types.py @@ -379,7 +379,7 @@ def ParseDataType(data_type: DataType, lookup: TypeLookupContext) -> Union[Basic elif lowercase_name in ['enum8', 'enum16', 'enum32']: return IdlEnumType(idl_name=lowercase_name, base_type=__CHIP_SIZED_TYPES__[lowercase_name]) elif lowercase_name in ['bitmap8', 'bitmap16', 'bitmap24', 'bitmap32']: - return IdlEnumType(idl_name=lowercase_name, base_type=__CHIP_SIZED_TYPES__[lowercase_name]) + return IdlBitmapType(idl_name=lowercase_name, base_type=__CHIP_SIZED_TYPES__[lowercase_name]) int_type = __CHIP_SIZED_TYPES__.get(lowercase_name, None) if int_type is not None: