mirror of
https://github.com/esphome/esphome.git
synced 2024-12-21 16:27:44 +01:00
[config_validation] Fix bug with extras on schemas (#7497)
This commit is contained in:
parent
4332301dbb
commit
c2518cff89
@ -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 New Issue
Block a user