core icon indicating copy to clipboard operation
core copied to clipboard

Toon integration stopped work

Open mdbruinnl opened this issue 4 months ago • 1 comments

The problem

All devices/entities are unavailable after last update: (2024.10.2)

What version of Home Assistant Core has the issue?

2024.10.2

What was the last working version of Home Assistant Core?

2024.10.0

What type of installation are you running?

Home Assistant Core

Integration causing the issue

TOON

Link to integration documentation on our website

No response

Diagnostics information

SNIP_____ 2024-10-13 11:13:53.071 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry <My Home> for toon Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/toon/init.py", line 93, in async_setup_entry await coordinator.toon.activate_agreement( File "/usr/local/lib/python3.12/site-packages/toonapi/toon.py", line 161, in activate_agreement await self.agreements() File "/usr/local/lib/python3.12/site-packages/toonapi/toon.py", line 182, in agreements agreements = await self._request( ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/backoff/_async.py", line 151, in retry ret = await target(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/backoff/_async.py", line 151, in retry ret = await target(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/toonapi/toon.py", line 79, in _request self.token = await self.token_refresh_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/toon/coordinator.py", line 39, in async_token_refresh await session.async_ensure_token_valid() File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 531, in async_ensure_token_valid new_token = await self.implementation.async_refresh_token(self.token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 103, in async_refresh_token new_token = await self._async_refresh_token(token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/toon/oauth2.py", line 116, in _async_refresh_token new_token = await self._token_request(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/toon/oauth2.py", line 135, in _token_request resp.raise_for_status() File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1121, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 404, message='Not found', url='https://api.toon.eu/token'

_________END SNIP __________

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

tried to restore latest backup, but did not change anything

mdbruinnl avatar Oct 13 '24 09:10 mdbruinnl