Closed andrewmarklloyd closed 3 years ago
@andrewmarklloyd thanks for bringing this to my attention! I will be investigating this today. Very comprehensive explanation of the issue; I appreciate it! That will help me get started.
@andrewmarklloyd so from what I can tell, the request to toggle the device failed, possibly due to a timeout trying to make the request to toggle it. I'm going to create a pull request that will provide an error response that is slightly more helpful than the stack trace. I had an HS105 available locally so I was able to verify the toggle functionality is working on the latest release.
Here is the mentioned pull request: https://github.com/piekstra/tplink-cloud-api/pull/19
I am closing the issue but please reopen if the failure continues for some reason.
Thanks for addressing this so quickly @piekstra. Also thanks for having a great open source project with tests and strict semver releases. This is a great library and a model for open source project management!
I get the error
AttributeError: 'NoneType' object has no attribute 'get'
when trying to toggle an HS105 device.Here's the contents of
main.py
:Output: