fixes sio callback when attribute changes to an enum which was not present before

This commit is contained in:
Mose Müller 2024-03-04 17:32:45 +01:00
parent 86ccdd77f1
commit 691bf809cb

View File

@ -103,6 +103,10 @@ def setup_sio_server(
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:
try:
await sio.emit(