[core] Fix CI: build_language_schema default, import budget, py312 ruff

This commit is contained in:
Franck Nijhof
2026-06-29 11:42:48 +00:00
parent d1d01e5718
commit 71a1ba6f36
3 changed files with 9 additions and 3 deletions
+4 -2
View File
@@ -1162,9 +1162,11 @@ def convert_keys(converted, schema, path):
"value": str(default_value),
"components": components,
}
elif hasattr(k, "default") and str(k.default) != "...":
elif hasattr(k, "default") and not isinstance(k.default, probatio.Undefined):
default_value = k.default()
if default_value is not None:
if default_value is not None and not isinstance(
default_value, probatio.Undefined
):
result["default"] = str(default_value)
# UI hint from ``cv.Optional`` / ``cv.Required`` — surfaced
+1 -1
View File
@@ -1,5 +1,5 @@
{
"target_module": "esphome.__main__",
"margin_pct": 15,
"cumulative_us": 91000
"cumulative_us": 127000
}