Skip to content

Commit

Permalink
[config_validation] Fix bug with extras on schemas (esphome#7497)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Sep 26, 2024
1 parent b61577b commit 21fbbc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion esphome/voluptuous_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,6 @@ def extend(self, *schemas, **kwargs):
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()
)

0 comments on commit 21fbbc5

Please sign in to comment.