from enum import IntEnum # version: 0.0.1 class RgblightModes(IntEnum): {%- for id, effect in constants.rgblight.effects | dictsort %} {{ effect.key }} = {{ id }} {%- endfor %} class RgbMatrixModes(IntEnum): {%- for id, effect in constants.rgb_matrix.effects | dictsort %} {{ effect.key }} = {{ id }} {%- endfor %}