python-laurel icon indicating copy to clipboard operation
python-laurel copied to clipboard

Getting laurel.LaurelException: API authentication failed

Open hanlongwang opened this issue 4 years ago • 3 comments

Since GE switched to Cync

hanlongwang avatar Jun 12 '21 17:06 hanlongwang

Same here. This is what I'm seeing:

root@HomeAssistant:~/dimond/python-dimond# python3 test.py Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/laurel-0.5-py3.7.egg/laurel/init.py", line 31, in authenticate return (r.json()['access_token'], r.json()['user_id']) KeyError: 'access_token'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "test.py", line 2, in connection = laurel.laurel("@gmail.com","*") File "/usr/local/lib/python3.7/dist-packages/laurel-0.5-py3.7.egg/laurel/init.py", line 90, in init (self.auth, self.userid) = authenticate(user, password) File "/usr/local/lib/python3.7/dist-packages/laurel-0.5-py3.7.egg/laurel/init.py", line 33, in authenticate raise(LaurelException('API authentication failed')) laurel.LaurelException: API authentication failed root@HomeAssistant:~/dimond/python-dimond#

lordlala avatar Jun 22 '21 02:06 lordlala

Looks like somebody has resolved here Might try to convert to Python this weekend and see if I can get it to work

zimmra avatar Aug 21 '21 00:08 zimmra

@zimmra did you try?

KTibow avatar Oct 05 '21 00:10 KTibow