diff --git a/templating/internal/units.py b/templating/internal/units.py index 328a9f075..c8d47d98f 100644 --- a/templating/internal/units.py +++ b/templating/internal/units.py @@ -82,6 +82,9 @@ def _load_schemas(): value_type = "[%s]" % props[key_name]["items"]["type"] else: value_type = props[key_name]["type"] + if props[key_name].get("enum"): + value_type = "enum" + desc += " One of: %s" % json.dumps(props[key_name]["enum"]) fields["rows"].append({ "key": key_name,