Browse Source

Handle IrisPayloadData without value

Tulir Asokan 2 năm trước cách đây
mục cha
commit
f86f4c441e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      mauigpapi/types/mqtt.py

+ 1 - 1
mauigpapi/types/mqtt.py

@@ -72,7 +72,7 @@ class CommandResponse(SerializableAttrs):
 class IrisPayloadData(SerializableAttrs):
     op: Operation
     path: str
-    value: str
+    value: str = "{}"
 
 
 @dataclass(kw_only=True)