From bff6dee0a7d7c6d7a6ea3de5bc6cb48b62d1d08f Mon Sep 17 00:00:00 2001 From: Cecille Freeman Date: Thu, 5 Oct 2023 10:40:27 -0400 Subject: [PATCH] check --- .../templates/python-ClusterRevisions-py.zapt | 25 +++++++++++++++++++ .../python/templates/templates.json | 5 ++++ 2 files changed, 30 insertions(+) create mode 100644 src/controller/python/templates/python-ClusterRevisions-py.zapt diff --git a/src/controller/python/templates/python-ClusterRevisions-py.zapt b/src/controller/python/templates/python-ClusterRevisions-py.zapt new file mode 100644 index 00000000000000..b571a72701574b --- /dev/null +++ b/src/controller/python/templates/python-ClusterRevisions-py.zapt @@ -0,0 +1,25 @@ +''' +{{> header}} +''' + +# This file contains generated default cluster revision data for known clusters + +import typing +from dataclasses import dataclass, field + +from chip import ChipUtility +from chip.clusters.enum import MatterIntEnum +from chip.tlv import float32, uint + +from .ClusterObjects import (Cluster, ClusterAttributeDescriptor, ClusterCommand, ClusterEvent, ClusterObject, + ClusterObjectDescriptor, ClusterObjectFieldDescriptor) +from .Types import Nullable, NullValue + + +ATTRIBUTE_DEFAULTS = {} + +{{#zcl_clusters}} +{{#zcl_attributes_server}} +ATTIBUTE_DEFAULTS[{{asMEI parent.manufacturerCode parent.code}}][{{asMEI manufacturerCode code}}] = {{attributeDefault}} +{{/zcl_attributes_server}} +{{/zcl_clusters}} \ No newline at end of file diff --git a/src/controller/python/templates/templates.json b/src/controller/python/templates/templates.json index e5d15198c5aac8..90179779eeb9e8 100644 --- a/src/controller/python/templates/templates.json +++ b/src/controller/python/templates/templates.json @@ -33,6 +33,11 @@ "path": "python-cluster-Objects-py.zapt", "name": "CHIP ClusterObjects for Python", "output": "src/controller/python/chip/clusters/Objects.py" + }, + { + "path": "python-ClusterRevisions-py.zapt", + "name": "Default cluster revision data for python", + "output": "src/controller/python/chip/clusters/Revisions.py" } ] }