Skip to content

Commit

Permalink
add bitmap generation support in zap for python cluster objects
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google committed Jan 17, 2023
1 parent 9fbcf1c commit 8d13fad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/controller/python/templates/python-cluster-Objects-py.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ class {{asUpperCamelCase name}}(Cluster):

{{/zcl_enums}}

{{#zcl_bitmaps}}
{{#first}}
class Enums:
{{/first}}
class {{asType label}}(IntEnum):
{{#zcl_bitmap_items}}
k{{asUpperCamelCase label}} = {{asHex mask}}
{{/zcl_bitmap_items}}

{{/zcl_bitmaps}}

{{#zcl_structs}}
{{#first}}
class Structs:
Expand Down

0 comments on commit 8d13fad

Please sign in to comment.