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

Hanksharke issue : KeyError: 'result' #140

Closed
Number-313 opened this issue Jun 23, 2024 · 2 comments
Closed

Hanksharke issue : KeyError: 'result' #140

Number-313 opened this issue Jun 23, 2024 · 2 comments

Comments

@Number-313
Copy link

Hello,
I'm having an issue using PyP100

from PyP100 import PyP100
p100 = PyP100.P100("192.168.X.X, "[email protected]", "MyPaSsWoRd!")
p100.handshake()
p100.login()
p100.turnOffWithDelay(45)

here's what I get when I execute the script :

root@raspberrypi:/usr/local/bin# shutdown_with_tapo.sh
Traceback (most recent call last):
File "/usr/local/bin/scripts/tapo_off.py", line 6, in
p100.handshake()
File "/usr/local/lib/python3.9/dist-packages/PyP100/PyP100.py", line 129, in handshake
encryptedKey = r.json()["result"]["key"]
KeyError: 'result'

@Number-313
Copy link
Author

Number-313 commented Jun 23, 2024

Alright, with a simple reinstall I could fix my issue :

pip uninstall pyp100 && pip install git+https://github.com/almottier/TapoP100.git@main

@Toug19
Copy link

Toug19 commented Oct 19, 2024

I got the same issue and I think this is not a normal behaviour. There might some differences between the release version under pip repositories and this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants