Skip to content

Commit

Permalink
Tagging Attribute Storage Policy properly (#1137)
Browse files Browse the repository at this point in the history
* cleaning up storage policy code and fixing issue_1110 in the process
  • Loading branch information
paulr34 authored Sep 14, 2023
1 parent 7fbc396 commit 53c1a25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src-electron/db/query-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ INTO ENDPOINT_TYPE_ATTRIBUTE (
cluster.endpointTypeClusterId,
attributeId,
staticAttribute.defaultValue ? staticAttribute.defaultValue : '',
dbEnum.storageOption.ram,
staticAttribute.storagePolicy,
clusterRef,
reportMinInterval,
reportMaxInterval,
Expand Down
9 changes: 4 additions & 5 deletions src-electron/zcl/zcl-loader-silabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,15 +556,14 @@ function prepareCluster(cluster, context, isExtension = false) {
attribute.$.reportingPolicy
)
}
let storagePolicy = dbEnum.storagePolicy.any
if (context.listsUseAttributeAccessInterface && attribute.$.entryType) {
storagePolicy = dbEnum.storagePolicy.attributeAccessInterface
} else if (
let storagePolicy = dbEnum.storageOption.ram
if (
context.listsUseAttributeAccessInterface &&
context.attributeAccessInterfaceAttributes &&
context.attributeAccessInterfaceAttributes[cluster.name] &&
context.attributeAccessInterfaceAttributes[cluster.name].includes(name)
) {
storagePolicy = dbEnum.storagePolicy.attributeAccessInterface
storagePolicy = dbEnum.storageOption.external
}
let att = {
code: parseInt(attribute.$.code),
Expand Down

0 comments on commit 53c1a25

Please sign in to comment.