core: Withings Setup Translation Error: The intl string context var

The problem

I’ve tried to re-configure my Withings Integration due to the changes in HA 2023.10 But i get an error Translation Error: The intl string context var

Bildschirmfoto 2023-10-10 um 08 25 11

I’ve removed the integration several times and re-added the profiles. Regardless if i configure the integration with my internal or external HA URL the error is still the same after one day of working.

What version of Home Assistant Core has the issue?

core-2023.10.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

withings

Link to integration documentation on our website

https://www.home-assistant.io/integrations/withings

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Error 1

Logger: homeassistant
Source: components/withings/api.py:166
First occurred: 02:34:35 (3 occurrences)
Last logged: 02:34:35

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/withings/__init__.py", line 173, in register_webhook
    await hass.data[DOMAIN][entry.entry_id].async_subscribe_webhooks(webhook_url)
  File "/usr/src/homeassistant/homeassistant/components/withings/coordinator.py", line 89, in async_subscribe_webhooks
    await self.async_unsubscribe_webhooks()
  File "/usr/src/homeassistant/homeassistant/components/withings/coordinator.py", line 132, in async_unsubscribe_webhooks
    await self._client.async_notify_revoke(
  File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 170, in async_notify_revoke
    await self._do_retry(call_super)
  File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 87, in _do_retry
    raise exception
  File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 76, in _do_retry
    return await func()
           ^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 166, in call_super
    await self._hass.async_add_executor_job(
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/withings_api/__init__.py", line 332, in notify_revoke
    self.request(path=self.PATH_NOTIFY, params=params)
  File "/usr/local/lib/python3.11/site-packages/withings_api/__init__.py", line 115, in request
    return response_body_or_raise(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/withings_api/common.py", line 830, in response_body_or_raise
    raise InvalidParamsException(status=status)
withings_api.common.InvalidParamsException: Error code 380

Error 2

Logger: homeassistant.util.logging
Source: util/logging.py:116
First occurred: 02:34:38 (6 occurrences)
Last logged: 02:34:38

Exception in manage_cloudhook when dispatching 'CLOUD_CONNECTION_STATE': (<CloudConnectionState.CLOUD_DISCONNECTED: 'cloud_disconnected'>,) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/withings/__init__.py", line 184, in manage_cloudhook await unregister_webhook(None) File "/usr/src/homeassistant/homeassistant/components/withings/__init__.py", line 144, in unregister_webhook await hass.data[DOMAIN][entry.entry_id].async_unsubscribe_webhooks() File "/usr/src/homeassistant/homeassistant/components/withings/coordinator.py", line 120, in async_unsubscribe_webhooks current_webhooks = await self._client.async_notify_list() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 143, in async_notify_list return await self._do_retry(call_super) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 87, in _do_retry raise exception File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 76, in _do_retry return await func() ^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 141, in call_super return await self._hass.async_add_executor_job(self.notify_list, appli) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/withings_api/__init__.py", line 315, in notify_list return NotifyListResponse(**self.request(path=self.PATH_NOTIFY, params=params)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/withings_api/__init__.py", line 115, in request return response_body_or_raise( ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/withings_api/common.py", line 828, in response_body_or_raise raise AuthFailedException(status=status) withings_api.common.AuthFailedException: Error code 401
Exception in manage_cloudhook when dispatching 'CLOUD_CONNECTION_STATE': (<CloudConnectionState.CLOUD_CONNECTED: 'cloud_connected'>,) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/withings/__init__.py", line 181, in manage_cloudhook await register_webhook(None) File "/usr/src/homeassistant/homeassistant/components/withings/__init__.py", line 173, in register_webhook await hass.data[DOMAIN][entry.entry_id].async_subscribe_webhooks(webhook_url) File "/usr/src/homeassistant/homeassistant/components/withings/coordinator.py", line 89, in async_subscribe_webhooks await self.async_unsubscribe_webhooks() File "/usr/src/homeassistant/homeassistant/components/withings/coordinator.py", line 132, in async_unsubscribe_webhooks await self._client.async_notify_revoke( File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 170, in async_notify_revoke await self._do_retry(call_super) File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 87, in _do_retry raise exception File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 76, in _do_retry return await func() ^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/withings/api.py", line 166, in call_super await self._hass.async_add_executor_job( File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/withings_api/__init__.py", line 332, in notify_revoke self.request(path=self.PATH_NOTIFY, params=params) File "/usr/local/lib/python3.11/site-packages/withings_api/__init__.py", line 115, in request return response_body_or_raise( ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/withings_api/common.py", line 828, in response_body_or_raise raise AuthFailedException(status=status) withings_api.common.AuthFailedException: Error code 401

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

When you visit the portal you can refresh your client secret, then you can remove the current credentials in HA and readd them