diff --git a/src-electron/generator/matter/controller/python/templates/helper.js b/src-electron/generator/matter/controller/python/templates/helper.js index 9b2aadf25f..2df602b54b 100644 --- a/src-electron/generator/matter/controller/python/templates/helper.js +++ b/src-electron/generator/matter/controller/python/templates/helper.js @@ -83,7 +83,9 @@ async function as_underlying_python_zcl_type(type, clusterId, options) { dataType.discriminatorName.toLowerCase() == dbEnum.zclType.enum || dataType.discriminatorName.toLowerCase() == dbEnum.zclType.number ) { - // returning nothing for floats + // Do not know on why this is the case but returning nothing for floats + // and this is done for comaptibility with asPythonType. + if ( dataType.name.includes('float') || dataType.name.includes('double') ||