mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
fixes updating a value through sio client
This commit is contained in:
parent
8979a1885e
commit
780a2466d3
@ -22,10 +22,13 @@ class UpdateDict(TypedDict):
|
||||
|
||||
Attributes:
|
||||
----------
|
||||
access_path : string
|
||||
The full access path of the attribute to be updated.
|
||||
value : SerializedObject
|
||||
The serialized new value to be assigned to the attribute.
|
||||
"""
|
||||
|
||||
access_path: str
|
||||
value: SerializedObject
|
||||
|
||||
|
||||
@ -124,7 +127,7 @@ def setup_sio_events(sio: socketio.AsyncServer, state_manager: StateManager) ->
|
||||
|
||||
@sio.event
|
||||
async def update_value(sid: str, data: UpdateDict) -> None:
|
||||
path = data["value"]["full_access_path"]
|
||||
path = data["access_path"]
|
||||
|
||||
# this should probably happen within the following function call -> can also
|
||||
# look at the current type of the attribute at "path"
|
||||
|
Loading…
x
Reference in New Issue
Block a user