Skip to content

Commit

Permalink
chore(cloud): remove unreachable code (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
rokam authored May 29, 2024
1 parent 27be5bc commit 55a34ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions midealocal/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,6 @@ async def _api_request(
header: dict[str, Any] | None = None,
) -> dict[str, Any] | None:
header = header or {}
if not data.get("reqId"):
data.update({"reqId": token_hex(16)})
if not data.get("stamp"):
data.update({"stamp": datetime.datetime.now().strftime("%Y%m%d%H%M%S")})
url = self._api_url + endpoint

sign = self._security.sign(url, data, "")
Expand Down

0 comments on commit 55a34ac

Please sign in to comment.