get cached value before executing custom notification callbacks

This commit is contained in:
Mose Müller 2024-03-05 13:53:41 +01:00
parent 8971cebfcd
commit 8787cb0509

View File

@ -44,8 +44,12 @@ class DataServiceObserver(PropertyObserver):
self._update_cache_value(full_access_path, value, cached_value_dict)
# TODO: get the cached value again -> _update_cache_value already put the
# right thing into the cache
cached_value_dict = deepcopy(
self.state_manager._data_service_cache.get_value_dict_from_cache(
full_access_path
)
)
for callback in self._notification_callbacks:
callback(full_access_path, value, cached_value_dict)