浏览代码

Always set reportRequestID = 0 on oadrRegisterReport

Closes #44.
Stan Janssen 3 年之前
父节点
当前提交
073366c073
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      openleadr/client.py

+ 2 - 1
openleadr/client.py

@@ -446,7 +446,8 @@ class OpenADRClient:
         request_id = utils.generate_id()
         payload = {'request_id': request_id,
                    'ven_id': self.ven_id,
-                   'reports': reports}
+                   'reports': reports,
+                   'report_request_id': 0}
 
         service = 'EiReport'
         message = self._create_message('oadrRegisterReport', **payload)