Is your feature request related to a problem? Please describe.
I downloaded the integration to HomeAssistant using HACS
restarted HA
When adding the integration I get an unknown error accured
I managed to catch the error in the log.
What can I do to add the account? The account is an admin account on the watch and I can log in using the app. Tried 2 different accounts but same issue on both.
Describe the feature you want
Solution to use integration
Additional context
Felet härrör från en anpassad integration.
Logger: aiohttp.server
Source: custom_components/xplora_watch/config_flow.py:99
Integration: Xplora® Watch (documentation, issues)
First occurred: 17:07:09 (6 occurrences)
Last logged: 17:17:55
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 67, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 234, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 271, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/xplora_watch/config_flow.py", line 174, in async_step_user_phone
info = await validate_input(self.hass, user_input)
File "/config/custom_components/xplora_watch/config_flow.py", line 99, in validate_input
await account.init(signup=False)
File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 66, in init
token = await self._login(forceLogin, key, sec)
File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 50, in _login
self._issueToken = await self._gql_handler.login_a(key, sec)
File "/usr/local/lib/python3.10/site-packages/pyxplora_api/gql_handler_async.py", line 81, in login_a
raise LoginError("Login error: %s", error_message)
TypeError: LoginError.init() takes from 1 to 2 positional arguments but 3 were given
Is your feature request related to a problem? Please describe.
I downloaded the integration to HomeAssistant using HACS
restarted HA
When adding the integration I get an unknown error accured
I managed to catch the error in the log.
What can I do to add the account? The account is an admin account on the watch and I can log in using the app. Tried 2 different accounts but same issue on both.
Describe the feature you want
Solution to use integration
Additional context
Felet härrör från en anpassad integration.
Logger: aiohttp.server Source: custom_components/xplora_watch/config_flow.py:99 Integration: Xplora® Watch (documentation, issues) First occurred: 17:07:09 (6 occurrences) Last logged: 17:17:55
Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 67, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 234, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper result = await method(view, request, data, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 271, in async_configure result = await self._async_handle_step( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/config/custom_components/xplora_watch/config_flow.py", line 174, in async_step_user_phone info = await validate_input(self.hass, user_input) File "/config/custom_components/xplora_watch/config_flow.py", line 99, in validate_input await account.init(signup=False) File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 66, in init token = await self._login(forceLogin, key, sec) File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 50, in _login self._issueToken = await self._gql_handler.login_a(key, sec) File "/usr/local/lib/python3.10/site-packages/pyxplora_api/gql_handler_async.py", line 81, in login_a raise LoginError("Login error: %s", error_message) TypeError: LoginError.init() takes from 1 to 2 positional arguments but 3 were given