mirror of
https://github.com/esphome/esphome.git
synced 2026-10-01 17:00:21 +00:00
[core] Fix CI: build_language_schema default, import budget, py312 ruff
This commit is contained in:
@@ -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,5 +1,5 @@
|
||||
{
|
||||
"target_module": "esphome.__main__",
|
||||
"margin_pct": 15,
|
||||
"cumulative_us": 91000
|
||||
"cumulative_us": 127000
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user