mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
[config_validation] Fix bug with extras on schemas (#7497)
This commit is contained in:
@@ -226,4 +226,6 @@ class _Schema(vol.Schema):
|
||||
if isinstance(schema, vol.Schema):
|
||||
schema = schema.schema
|
||||
ret = super().extend(schema, extra=extra)
|
||||
return _Schema(ret.schema, extra=ret.extra, extra_schemas=self._extra_schemas)
|
||||
return _Schema(
|
||||
ret.schema, extra=ret.extra, extra_schemas=self._extra_schemas.copy()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user