mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
[config_validation] Fix bug with extras on schemas (#7497)
This commit is contained in:
parent
4332301dbb
commit
c2518cff89
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue