mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 12:35:25 +00:00
Include model-driven display schemas in the language schema dump (#16872)
This commit is contained in:
@@ -1002,6 +1002,10 @@ def convert(schema, config_var, path):
|
||||
else:
|
||||
config_var["use_id_type"] = str(data.base)
|
||||
config_var[S_TYPE] = "use_id"
|
||||
elif schema_type == "schema":
|
||||
# A callable CONFIG_SCHEMA that returned a representative schema
|
||||
# for extraction (model-driven components); walk it as usual.
|
||||
convert(data, config_var, path)
|
||||
else:
|
||||
raise TypeError("Unknown extracted schema type")
|
||||
elif config_var.get("key") == "GeneratedID":
|
||||
|
||||
Reference in New Issue
Block a user