I don’t know if there is some relation with this, but in the log, there is one issue for the Google Assistant:
Logger: homeassistant
Source: components/google_assistant/http.py:57
First occurred: 17:29:20 (2 occurrences)
Last logged: 17:29:58
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/jwt/algorithms.py", line 257, in prepare_key
key = load_pem_private_key(key, password=None)
File "/usr/local/lib/python3.10/site-packages/cryptography/hazmat/primitives/serialization/base.py", line 22, in load_pem_private_key
return ossl.load_pem_private_key(data, password)
File "/usr/local/lib/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 921, in load_pem_private_key
return self._load_key(
File "/usr/local/lib/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1189, in _load_key
self._handle_key_loading_error()
File "/usr/local/lib/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1248, in _handle_key_loading_error
raise ValueError(
ValueError: ('Could not deserialize key data. The data may be in an incorrect format, it may be encrypted with an unsupported algorithm, or it may be an unsupported key type (e.g. EC curves with explicit parameters).', [_OpenSSLErrorWithText(code=151584876, lib=9, reason=108, reason_text=b'error:0909006C:PEM routines:get_name:no start line')])
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/google_assistant/helpers.py", line 110, in sync_google
await self.async_sync_entities_all()
File "/usr/src/homeassistant/homeassistant/components/google_assistant/helpers.py", line 227, in async_sync_entities_all
res = await gather(
File "/usr/src/homeassistant/homeassistant/components/google_assistant/helpers.py", line 217, in async_sync_entities
status = await self._async_request_sync_devices(agent_user_id)
File "/usr/src/homeassistant/homeassistant/components/google_assistant/http.py", line 163, in _async_request_sync_devices
return await self.async_call_homegraph_api(
File "/usr/src/homeassistant/homeassistant/components/google_assistant/http.py", line 205, in async_call_homegraph_api
await self._async_update_token()
File "/usr/src/homeassistant/homeassistant/components/google_assistant/http.py", line 179, in _async_update_token
_get_homegraph_jwt(
File "/usr/src/homeassistant/homeassistant/components/google_assistant/http.py", line 57, in _get_homegraph_jwt
return jwt.encode(jwt_raw, key, algorithm="RS256")
File "/usr/local/lib/python3.10/site-packages/jwt/api_jwt.py", line 67, in encode
return api_jws.encode(json_payload, key, algorithm, headers, json_encoder)
File "/usr/local/lib/python3.10/site-packages/jwt/api_jws.py", line 153, in encode
key = alg_obj.prepare_key(key)
File "/usr/local/lib/python3.10/site-packages/jwt/algorithms.py", line 259, in prepare_key
key = load_pem_public_key(key)
File "/usr/local/lib/python3.10/site-packages/cryptography/hazmat/primitives/serialization/base.py", line 30, in load_pem_public_key
return ossl.load_pem_public_key(data)
File "/usr/local/lib/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 968, in load_pem_public_key
self._handle_key_loading_error()
File "/usr/local/lib/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 1248, in _handle_key_loading_error
raise ValueError(
ValueError: ('Could not deserialize key data. The data may be in an incorrect format, it may be encrypted with an unsupported algorithm, or it may be an unsupported key type (e.g. EC curves with explicit parameters).', [_OpenSSLErrorWithText(code=151584876, lib=9, reason=108, reason_text=b'error:0909006C:PEM routines:get_name:no start line')])