Pyhass / Pyhiveapi

A python library to interface with the hive home api
MIT License
24 stars 18 forks source link

Issue getting device password #65

Open supersausage85 opened 1 year ago

supersausage85 commented 1 year ago

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

dfluff commented 1 year ago

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.