Pyhiveapi icon indicating copy to clipboard operation
Pyhiveapi copied to clipboard

Issue getting device password

Open supersausage85 opened this issue 2 years ago • 1 comments

im trying to use the library as standalone to get the required tokens to use to integrate with my own automation

the problem im having is if i use the api example with 2FA and enter the code i correctly get the tokens back but the device is not registered as a trusted device so i never see the device password to be able to use the refresh api.

i am new to this aspect and using python but not new to coding in general

hoping someone might be able to help me

supersausage85 avatar Jun 15 '23 15:06 supersausage85

Seconded - I just hit this as well. It took me a while to get to that stage as the examples documentation seems a bit out of date (lots of things like deviceLogin instead of device_login ...I might fork and correct those bits of the docs if I get time). I've been picking through the code but can't quite follow how the device-registration is supposed to work with the API.

dfluff avatar Sep 24 '23 19:09 dfluff