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

Fixes for home assistant #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tljdebrouwer
Copy link

Hello,

While integrating the newest version with HA I got the following error:

"TypeError: backoff.on_exception applied to a regular function inside coroutine, this will lead to event loop hiccups. Use backoff.on_exception on coroutines in asynchronous code."

on

@backoff.on_exception(backoff.expo, IncompleteStatus)

I'm not sure why this was added in the last release? Do we really need it?

Else I would propose to remove it as in this pull request. With a local library build I was able to verify the working.

Thanks,

Tom

@costastf
Copy link
Owner

costastf commented Dec 3, 2019

The reason why I implemented that is that on Saturday when I did the refactoring the service was almost unresponsive with huge backend issues so I implemented a backoff on things that were breaking. It does make the code more robust. I got feedback from the HA MR I created that the authentication I implemented would indeed break other implementations and I am still waiting on feedback on how to best resolve that. I will be on vacation after tomorrow until the new year so I don't see this moving forward until then.

@tljdebrouwer
Copy link
Author

tljdebrouwer commented Dec 4, 2019 via email

@tljdebrouwer
Copy link
Author

Hi,

Are you back from holiday? Can we continue to work on this?

@costastf
Copy link
Owner

costastf commented Jan 15, 2020 via email

@frenck
Copy link
Contributor

frenck commented Jan 15, 2020

Wow, that is nice to read here. Not sure if I deserved that in any way.
Sorry to hear that is how you think of me.

in which case I need to refactor again for that purpose but it
is not clear what he has in mind

That is a much clearer question than on the referenced PR.
Home Assistant provides OAuth2 helpers. All the OAuth2 logic is handled by HA, the tokens can be passed to the library.

Since all tenants support that, that would be ideal.

However, if you are not up for chatting with me or discussing any of that 🤷‍♂

I'm happy to pick it up.

@costastf
Copy link
Owner

costastf commented Jan 15, 2020 via email

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.

3 participants