store initial value after setting value of children

This commit is contained in:
iLLiCiTiT 2021-02-08 10:41:02 +01:00
parent 37ac7247e1
commit 9b21fc8876

View file

@ -284,7 +284,6 @@ class DictMutableKeysEntity(ItemEntity):
self.current_metadata = self.get_metadata_from_value(
new_value, metadata
)
self.initial_value = self.settings_value()
# Simulate `clear` method without triggering value change
for key in tuple(self.children_by_key.keys()):
@ -303,6 +302,8 @@ class DictMutableKeysEntity(ItemEntity):
child_obj.set_override_state(state)
self.initial_value = self.settings_value()
@property
def value(self):
return self._current_value