-
Notifications
You must be signed in to change notification settings - Fork 38
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
Integration fails #103
Comments
Thats an interesting one. What version of HA are you running? I may need to dig into their source to figure out whats going on as the exception doesnt provide much information. |
Home Assistant |
What docker image are you using for HA? I have done all my testing from a Synology NAS using Edit: Let me test with the official container @ ghcr.io/home-assistant/home-assistant:stable |
I was able to reproduce the issue with the following steps:
|
I believe this has been fixed with #104 . Please review the testing instructions within that PR and post any comments within that PR. |
This makes sense, since I tried using an incorrect password also and got the same result. However, in my case it didn’t prove/disprove anything since I am using the same UserID and Password that the old system used successfully and I can still use on the iOS Hubspace app. To test the system, I reset my password on Hubspace. I then tried to Add the Integration and use the new userid and password. The integration returned the same error. The new password immediately worked on my iOS app.Regards, RicardoRicardo A. VenegasOn Sep 1, 2024, at 08:30, Christopher Dohmen ***@***.***> wrote:
I was able to reproduce the issue with the following steps:
Add HubSpace-HomeAssistant to HACs
Add the integration HubSpace-HomeAssistant
Enter an incorrect login
Observe the issue above
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Refer to #103 (comment) I am wondering if this is something with the login or config flow. Lets manually run the login to see what happens from hubspace_async import connection conn = connection.HubSpaceConnection("", "") If the login is successful, you should see your account id printed to the terminal. If unsuccessful, an exception will be raised. I would be curious to see how long it takes to complete too. |
Ok, this could very well be my lack of python knowledge but when trying to run this code interactively this is what it looks like. Yes, I did replace my username and password, just replaced here for security.
|
No worries! The interactive terminal can be very weirs. Can you try running
one command at a time? Sometimes when multiple commands are passed together
it gets funky. See comment below since an email doesnt want to do proper formatting.
|
I have created an easier way to run the tests by adding a CLI tool to hubspace-async. Here is the updated commands
python -m hubspace_async.cli --username "<username>" --password "<password>" auth-flow If the auth is successful, you should not see any error messages. If that works, lets try to connect to gather the account ID. python -m hubspace_async.cli --username "<username>" --password "<password>" hs-conn If successful, an account id with several hyphens will appear. Below is an example of an auth failure:
|
Both of those commands end with Token has been successfully generated. |
Well that's a good start! At least we can focus on the configflow
…On Wed, Sep 4, 2024, 3:23 PM cjr222 ***@***.***> wrote:
Both of those commands end with Token has been successfully generated
—
Reply to this email directly, view it on GitHub
<#103 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEM5H4FARXJR3UWR6MZOOLZU5MZ7AVCNFSM6AAAAABNJIYCFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZHAYDOMZVGE>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
FWIW I have similar issues as OP. I too was able to generate both tokens. This integration was working flawlessly until recently. It stopped working for a while and then started again. Now it doesn't work at all. I am still on HACS 1.34.0 I don't know if this matters? |
And of course, it randomly starts working again 🤔 |
@Talonpoint Can yall redownload v3.1.1 and try again? This is a weird once since im not able to replicate the issue in the same way yall are experiencing it. Goto hacs -> Hubspace Homeassistant -> Update Information -> Redownload -> select |
@allstarnz a previous dev version of 3.1.1 had an issue where HA had to be restarted for it to start working. I wonder if thats what you experienced. |
I redownloaded 3.1.0 and signed in again, and it now works. I gonna stay on this version |
This may be solved with 3.2.0 + latest HA. Please let me know if the problem still persists! |
Closing due to inactivity. Please re-open the issue if you still encounter the problem. |
I have been using the old version and tried to upgrade and everything stopped working. I have tried to troubleshoot on my own, including deleting and reinstalling the custom repository, trying to go back to old version, many Home Assistant restarts. I get to the stage where I try to Add Integration, provide my username and password and submit. At that point Home Assistant generates the following log entry and the integration returns an Unknown error occurred message.
The Home Assistant Logs keep returning the following when I try to add the integration.
Logger: aiohttp.server
Source: /usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py:433
First occurred: 7:16:52 PM (4 occurrences)
Last logged: 7:40:01 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 462, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 537, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 222, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
return await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 366, in async_configure
result = await self._async_configure(flow_id, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 413, in _async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 527, in _async_handle_step
if result.get("preview") is not None:
^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
The text was updated successfully, but these errors were encountered: