|
发表于 2023-8-30 12:23:40
|
显示全部楼层
Logger: homeassistant.components.volvooncall.config_flow
Source: components/volvooncall/__init__.py:166
Integration: Volvo On Call (documentation, issues)
First occurred: 12:06:03 (1 occurrences)
Last logged: 12:06:03
Unhandled exception in user step
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/volvooncall/config_flow.py", line 60, in async_step_user
await self.is_valid(user_input)
File "/usr/src/homeassistant/homeassistant/components/volvooncall/config_flow.py", line 133, in is_valid
await test_volvo_data.auth_is_valid()
File "/usr/src/homeassistant/homeassistant/components/volvooncall/__init__.py", line 166, in auth_is_valid
await self.connection.get("customeraccounts")
File "/usr/local/lib/python3.11/site-packages/volvooncall/volvooncall.py", line 93, in get
return await self._request(METH_GET, self._make_url(url, rel))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/volvooncall/volvooncall.py", line 68, in _request
async with self._session.request(
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 508, in _request
req = self._request_class(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 310, in __init__
self.update_auth(auth)
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 497, in update_auth
self.headers[hdrs.AUTHORIZATION] = auth.encode()
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/helpers.py", line 186, in encode
creds = (f"{self.login}:{self.password}").encode(self.encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'latin-1' codec can't encode character '\u201c' in position 0: ordinal not in range(256)
|
|