mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
fixes sio callback when attribute changes to an enum which was not present before
This commit is contained in:
parent
86ccdd77f1
commit
691bf809cb
@ -103,6 +103,10 @@ def setup_sio_server(
|
|||||||
|
|
||||||
cached_value_dict["value"] = serialized_value["value"]
|
cached_value_dict["value"] = serialized_value["value"]
|
||||||
|
|
||||||
|
# Check if the serialized value contains an "enum" key, and if so, copy it
|
||||||
|
if "enum" in serialized_value:
|
||||||
|
cached_value_dict["enum"] = serialized_value["enum"]
|
||||||
|
|
||||||
async def notify() -> None:
|
async def notify() -> None:
|
||||||
try:
|
try:
|
||||||
await sio.emit(
|
await sio.emit(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user