Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs in pytuya #92

Merged
merged 1 commit into from
Oct 19, 2020
Merged

Fix bugs in pytuya #92

merged 1 commit into from
Oct 19, 2020

Conversation

postlund
Copy link
Collaborator

This handles responses without a return code and also fixes support for
unencrypted clients. Made a few tweaks to debug logs as well.

@postlund postlund added bug Something isn't working enhancement New feature or request labels Oct 19, 2020
@postlund postlund requested a review from rospogrigio October 19, 2020 08:23
@@ -537,7 +543,7 @@ def _generate_payload(self, command, data=None):
json_data["dps"] = self.dps_to_request

payload = json.dumps(json_data).replace(" ", "").encode("utf-8")
self.log.debug("Paylod: %s", payload)
self.log.debug("Send paylod: %s", payload)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with my official environment and everything works. Just this little typo we might want to correct (paylod).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certainly! Fixed now.

This handles responses without a return code and also fixes support for
unencrypted clients. Made a few tweaks to debug logs as well.
@rospogrigio rospogrigio merged commit e6538a4 into master Oct 19, 2020
@rospogrigio rospogrigio deleted the pytuya_fixes branch October 19, 2020 08:43
@rospogrigio
Copy link
Owner

Merged #92.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants