Skip to content

Commit

Permalink
revert last commit force int "t" always, need for some cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou committed Oct 17, 2023
1 parent 23a34f4 commit bc95346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/localtuya/core/pytuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ def _generate_payload(
else:
del json_data["data"]["cid"]
if "t" in json_data:
if json_data["t"] == "int" or nodeId:
if json_data["t"] == "int":
json_data["t"] = int(time.time())
else:
json_data["t"] = str(int(time.time()))
Expand Down

0 comments on commit bc95346

Please sign in to comment.