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

Tchao Bye bye the token file #738

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

cyr-ius
Copy link

@cyr-ius cyr-ius commented Dec 7, 2024

I am the author of the livebox and bouygue api and I propose this redesign, which consists of deleting the token file
You will first have to pass the parameters directly when instantiating the class.
Then make a call to register_app to retrieve the app_token
Once this is done, make a call to the open method and pass the token.

An advantage: the register_app function allows you to retrieve the app_token and possibly save it somewhere, for example in HomeAssistant directly in the config_entry.

All the parameters of the old file can be passed when instantiating the class.

Example:
fbx = Freepybox()
app_token = await fbx.register_app()
await fbx.open(app_token)

I took the opportunity to add the option to use HTTPS or not as well as the verification or not of the certificate.

Fix issue #734

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

Successfully merging this pull request may close these issues.

1 participant