Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Oct 5, 2023
1 parent 54a1460 commit bff6dee
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/controller/python/templates/python-ClusterRevisions-py.zapt
Original file line number Diff line number Diff line change
@@ -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}}
5 changes: 5 additions & 0 deletions src/controller/python/templates/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}

0 comments on commit bff6dee

Please sign in to comment.