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

AUTH code doesn't seem to be correct in the hub.py module #33

Open
awysocki opened this issue Jan 21, 2023 · 0 comments
Open

AUTH code doesn't seem to be correct in the hub.py module #33

awysocki opened this issue Jan 21, 2023 · 0 comments

Comments

@awysocki
Copy link

I'm very new to Python. So I may not know what I'm saying.

If I use aioeagle SAMPLE.PY and put in my CloudID, InstallCode and IP of my unit, I keep receiving a "BadAuth" from the code. I know my CloudID and InstallCode are correct. If I modify hub.py line 38 (there abouts)

self.auth = BasicAuth(cloud_id, install_code)

to

self.auth = BasicAuth(cloud_id, install_code).encode()

The AUTH and the request now works, but the code fails elsewhere, complaining of a thuple error.

looking at AIOHTTP.PY code the only time that code encodes the AUTH is on initialization of the class. I'm at a loss of how to fix this.

Any pointers?

Thanks

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

No branches or pull requests

1 participant