Explorar o código

Handle IrisPayloadData without value

Tulir Asokan %!s(int64=2) %!d(string=hai) anos
pai
achega
f86f4c441e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)