8000 Add extra params to control child request · python-kasa/python-kasa@f5a3801 · GitHub
[go: up one dir, main page]

Skip to content

Commit f5a3801

Browse files
committed
Add extra params to control child request
1 parent 2eebb53 commit f5a3801

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

kasa/experimental/smartcameraprotocol.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
import logging
6+
import time
67
from pprint import pformat as pf
78
from typing import Any
89

@@ -154,7 +155,12 @@ async def _query(self, request: str | dict, retry_count: int = 3) -> dict:
154155
"params": {
155156
"childControl": {
156157
"device_id": self._device_id,
157-
"request_data": {"method": key, "params": val},
158+
"request_data": {
159+
"method": key,
160+
"params": val,
161+
"request_time_milis": round(time.time() * 1000),
162+
"terminal_uuid": self._terminal_uuid,
163+
},
158164
}
159165
},
160166
}

0 commit comments

Comments
 (0)
0