Skip to content

Commit

Permalink
properly tagging storage option based on zcl.json
Browse files Browse the repository at this point in the history
  • Loading branch information
paulr34 committed Sep 14, 2023
1 parent 142858f commit e15a46e
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 e15a46e

Please sign in to comment.