mirror of
https://github.com/esphome/esphome.git
synced 2026-10-02 17:30:22 +00:00
[core] Replace voluptuous with probatio for config validation
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user