Fix: using deep merge for test update schema (#3297)

This commit is contained in:
Pascal Vizeli 2021-11-10 11:34:57 +01:00 committed by GitHub
parent 8f263ab345
commit 838af87ad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -587,7 +587,9 @@ class Addon(AddonModel):
return True return True
# merge options # merge options
options = {**self.persist[ATTR_OPTIONS], **default_options} options = _OPTIONS_MERGER.merge(
deepcopy(default_options), deepcopy(self.persist[ATTR_OPTIONS])
)
# create voluptuous # create voluptuous
new_schema = vol.Schema( new_schema = vol.Schema(