diff --git a/custom_components/localtuya/core/pytuya/__init__.py b/custom_components/localtuya/core/pytuya/__init__.py index 254011b49..4ad9201e8 100644 --- a/custom_components/localtuya/core/pytuya/__init__.py +++ b/custom_components/localtuya/core/pytuya/__init__.py @@ -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()))