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

Leverage access and refresh tokens if available #575

Merged
merged 23 commits into from
Jul 20, 2018
Merged

Leverage access and refresh tokens if available #575

merged 23 commits into from
Jul 20, 2018

Conversation

balloob
Copy link
Member

@balloob balloob commented Jul 19, 2018

Authenticate with Home Assistant using access tokens.

Not tested yet. Assumes Python 3.7.

async with self.make_request(
method, path, json, content_type, data, timeout,
) as resp:
yield resp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should loop that and use the token refresh on start of that loop. If home assistant have a problem, we crash on ARM after some reqursive calls while the stack size is very small.

@pvizeli pvizeli merged commit 4df42e0 into dev Jul 20, 2018
@ghost ghost removed the in progress label Jul 20, 2018
@pvizeli pvizeli deleted the tokens branch July 20, 2018 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants