Added debugging

This commit is contained in:
rospogrigio
2023-01-07 23:24:02 +01:00
committed by rospogrigio
parent 0fb619960c
commit a3914cc8ce

View File

@@ -1052,7 +1052,7 @@ class TuyaProtocol(asyncio.Protocol, ContextualLogger):
payload = json.dumps(json_data) payload = json.dumps(json_data)
# if spaces are not removed device does not respond! # if spaces are not removed device does not respond!
payload = payload.replace(" ", "").encode("utf-8") payload = payload.replace(" ", "").encode("utf-8")
# self.debug("Sending payload: %s", payload) self.debug("Sending payload: %s", payload)
return MessagePayload(command_override, payload) return MessagePayload(command_override, payload)