adds todos

This commit is contained in:
Mose Müller 2024-03-05 13:24:15 +01:00
parent f2cf0d9c1a
commit 8971cebfcd
2 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,8 @@ 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
for callback in self._notification_callbacks:
callback(full_access_path, value, cached_value_dict)

View File

@ -273,6 +273,8 @@ def set_nested_value_by_path(
value_type = serialized_value.pop("type")
if "readonly" in current_dict and current_dict["type"] != "method":
current_dict["type"] = value_type
# TODO: this does not yet remove keys that are not present in the serialized new
# value
current_dict.update(serialized_value)