Skip to content

Commit

Permalink
Replace cluster_attributes with server_cluster_attributes (#13611)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored and pull[bot] committed May 19, 2022
1 parent a6934cf commit 1269312
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/app/zap-templates/templates/app/MatterIDL.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}

{{/zcl_events}}
{{#chip_cluster_attributes}}
{{#chip_server_cluster_attributes}}
attribute(
{{~#if isWritableAttribute~}}
writable
Expand All @@ -44,7 +44,7 @@
{{~#if isList~}}
[]
{{~/if}} = {{code}};
{{/chip_cluster_attributes}}
{{/chip_server_cluster_attributes}}
{{#chip_cluster_commands}}
{{#if arguments}}

Expand Down
15 changes: 0 additions & 15 deletions src/app/zap-templates/templates/chip/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,20 +221,6 @@ function chip_cluster_commands(options)
return asBlocks.call(this, commands, options);
}

/**
* Creates block iterator over the cluster attributes for a given cluster/side.
*
* This function is meant to be used inside a {{#chip_*_clusters}}
* block. It will throw otherwise.
*
* @param {*} options
*/
function chip_cluster_attributes(options)
{
const attributes = getAttributes.call(this, 'chip_cluster_attributes');

return asBlocks.call(this, attributes, options);
}
/**
* Creates block iterator over the cluster responses for a given cluster/side.
*
Expand Down Expand Up @@ -467,7 +453,6 @@ exports.chip_has_server_clusters = chip_has_server_c
exports.chip_cluster_commands = chip_cluster_commands;
exports.chip_cluster_command_arguments = chip_cluster_command_arguments;
exports.chip_cluster_command_arguments_with_structs_expanded = chip_cluster_command_arguments_with_structs_expanded;
exports.chip_cluster_attributes = chip_cluster_attributes;
exports.chip_server_global_responses = chip_server_global_responses;
exports.chip_cluster_responses = chip_cluster_responses;
exports.chip_cluster_response_arguments = chip_cluster_response_arguments
Expand Down

0 comments on commit 1269312

Please sign in to comment.