From 2bc8864bc4348fba1abef476e925c162d0bbf14c Mon Sep 17 00:00:00 2001 From: Bharat Dandu Date: Wed, 15 Mar 2023 16:10:21 -0400 Subject: [PATCH] Cleanup Github: ZAP#898 --- .../generator/matter/controller/python/templates/helper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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') ||