[core] Replace voluptuous with probatio for config validation

This commit is contained in:
Franck Nijhof
2026-06-29 11:14:40 +00:00
parent 8e23065b86
commit d1d01e5718
92 changed files with 381 additions and 438 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import os
from pathlib import Path
import re
import voluptuous as vol
import probatio
# NOTE: Cannot import other esphome components globally as a modification in vol_schema
# is needed before modules are loaded
@@ -929,7 +929,7 @@ def convert(schema, config_var, path):
elif schema in (cv.string, cv.string_strict, cv.valid_name):
config_var[S_TYPE] = "string"
elif isinstance(schema, vol.Schema):
elif isinstance(schema, probatio.Schema):
# test: esphome/project
config_var[S_TYPE] = "schema"
config_var["schema"] = convert_config(schema.schema, path + "/s")["schema"]