Skip to content

Commit

Permalink
- Minor Cleanup
Browse files Browse the repository at this point in the history
JIRA: ZAPP-1385
  • Loading branch information
brdandu committed Oct 31, 2024
1 parent 712b84d commit 863783b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apack.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Graphical configuration tool for application and libraries based on Zigbee Cluster Library.",
"path": [".", "node_modules/.bin/", "ZAP.app/Contents/MacOS"],
"requiredFeatureLevel": "apack.core:9",
"featureLevel": 105,
"featureLevel": 106,
"uc.triggerExtension": "zap",
"executable": {
"zap:win32.x86_64": {
Expand Down
6 changes: 3 additions & 3 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8448,7 +8448,7 @@ This module contains the API for templating. For more detailed instructions, rea
* [Templating API: Attribute helpers](#module_Templating API_ Attribute helpers)
* [~featureBits(options)](#module_Templating API_ Attribute helpers..featureBits) ⇒
* [~attributeDefault()](#module_Templating API_ Attribute helpers..attributeDefault) ⇒
* [~as_underlying_atomic_identifier_for_attributeId(attributeId)](#module_Templating API_ Attribute helpers..as_underlying_atomic_identifier_for_attributeId)
* [~as_underlying_atomic_identifier_for_attribute_id(attributeId)](#module_Templating API_ Attribute helpers..as_underlying_atomic_identifier_for_attribute_id)

<a name="module_Templating API_ Attribute helpers..featureBits"></a>

Expand All @@ -8469,9 +8469,9 @@ Valid within a cluster context, requires code.

**Kind**: inner method of [<code>Templating API: Attribute helpers</code>](#module_Templating API_ Attribute helpers)
**Returns**: Produces attribute defaults.
<a name="module_Templating API_ Attribute helpers..as_underlying_atomic_identifier_for_attributeId"></a>
<a name="module_Templating API_ Attribute helpers..as_underlying_atomic_identifier_for_attribute_id"></a>

### Templating API: Attribute helpers~as\_underlying\_atomic\_identifier\_for\_attributeId(attributeId)
### Templating API: Attribute helpers~as\_underlying\_atomic\_identifier\_for\_attribute\_id(attributeId)
Given an attribute Id determine its corresponding atomic identifier from the
atomic table.

Expand Down
6 changes: 3 additions & 3 deletions docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ This module contains the API for templating. For more detailed instructions, rea
* [Templating API: Attribute helpers](#module_Templating API_ Attribute helpers)
* [~featureBits(options)](#module_Templating API_ Attribute helpers..featureBits) ⇒
* [~attributeDefault()](#module_Templating API_ Attribute helpers..attributeDefault) ⇒
* [~as_underlying_atomic_identifier_for_attributeId(attributeId)](#module_Templating API_ Attribute helpers..as_underlying_atomic_identifier_for_attributeId)
* [~as_underlying_atomic_identifier_for_attribute_id(attributeId)](#module_Templating API_ Attribute helpers..as_underlying_atomic_identifier_for_attribute_id)

<a name="module_Templating API_ Attribute helpers..featureBits"></a>

Expand All @@ -148,9 +148,9 @@ Valid within a cluster context, requires code.

**Kind**: inner method of [<code>Templating API: Attribute helpers</code>](#module_Templating API_ Attribute helpers)
**Returns**: Produces attribute defaults.
<a name="module_Templating API_ Attribute helpers..as_underlying_atomic_identifier_for_attributeId"></a>
<a name="module_Templating API_ Attribute helpers..as_underlying_atomic_identifier_for_attribute_id"></a>

### Templating API: Attribute helpers~as\_underlying\_atomic\_identifier\_for\_attributeId(attributeId)
### Templating API: Attribute helpers~as\_underlying\_atomic\_identifier\_for\_attribute\_id(attributeId)
Given an attribute Id determine its corresponding atomic identifier from the
atomic table.

Expand Down
6 changes: 3 additions & 3 deletions src-electron/generator/helper-attribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ async function attributeDefault(options) {
* atomic table.
* @param {*} attributeId
*/
async function as_underlying_atomic_identifier_for_attributeId(attributeId) {
async function as_underlying_atomic_identifier_for_attribute_id(attributeId) {
let attributeDetails =
await queryZcl.selectAttributeByAttributeIdAndClusterRef(
this.global.db,
Expand Down Expand Up @@ -164,5 +164,5 @@ async function as_underlying_atomic_identifier_for_attributeId(attributeId) {

exports.global_attribute_default = attributeDefault
exports.feature_bits = featureBits
exports.as_underlying_atomic_identifier_for_attributeId =
as_underlying_atomic_identifier_for_attributeId
exports.as_underlying_atomic_identifier_for_attribute_id =
as_underlying_atomic_identifier_for_attribute_id
2 changes: 1 addition & 1 deletion test/gen-template/zigbee/zap-config-version-3.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
#define GENERATED_MULTI_PROTOCOL_ATTRIBUTE_MAPPING
{
{{#all_multi_protocol_attributes}}
{ {{clusterCode1}}, {{clusterMfgCode1}}, {{clusterCode2}}, {{clusterMfgCode2}}, {{attributeCode1}}, {{attributeMfgCode1}}, {{as_underlying_atomic_identifier_for_attributeId attributeRef1}}, {{attributeCode2}}, {{attributeMfgCode2}}, {{as_underlying_atomic_identifier_for_attributeId attributeRef2}} },
{ {{clusterCode1}}, {{clusterMfgCode1}}, {{clusterCode2}}, {{clusterMfgCode2}}, {{attributeCode1}}, {{attributeMfgCode1}}, {{as_underlying_atomic_identifier_for_attribute_id attributeRef1}}, {{attributeCode2}}, {{attributeMfgCode2}}, {{as_underlying_atomic_identifier_for_attributeId attributeRef2}} },
{{/all_multi_protocol_attributes}}
}
{{/if_multi_protocol_attributes_enabled}}
Expand Down

0 comments on commit 863783b

Please sign in to comment.