mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-07-11 20:01:50 +02:00
adds dictionary support to state_manager (__update_attribute_by_path)
This commit is contained in:
@ -272,6 +272,9 @@ class StateManager:
|
||||
if attr_cache_type == "list":
|
||||
list_obj = get_object_attr_from_path(target_obj, attr_name)
|
||||
list_obj[index] = value
|
||||
elif attr_cache_type == "dict":
|
||||
dict_obj = get_object_attr_from_path(target_obj, attr_name)
|
||||
dict_obj[index] = value
|
||||
else:
|
||||
setattr(target_obj, attr_name, value)
|
||||
|
||||
|
Reference in New Issue
Block a user