sander1988 / Indego

Home Assistant Custom Component for Bosch Indego Lawn Mower
Apache License 2.0
92 stars 29 forks source link

Indego 'unavailable' after update to HA2023.11 #203

Closed 35aportal closed 10 months ago

35aportal commented 10 months ago

My previously working integration fails to load after an update to HA2023.11.0. The following error messages are produced...

Logger: homeassistant.config_entries Source: config_entries.py:402 First occurred: 11:16:55 (3 occurrences) Last logged: 11:49:52

Error setting up entry Indego (025604130) for indego Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/indego/init.py", line 224, in async_setup_entry await indego_hub.update_generic_data_and_load_platforms(load_platforms) File "/config/custom_components/indego/init.py", line 370, in update_generic_data_and_load_platforms generic_data = await self._update_generic_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/indego/init.py", line 617, in _update_generic_data await self._indego_client.update_generic_data() File "/usr/local/lib/python3.11/site-packages/pyIndego/indego_async_client.py", line 262, in update_generic_data self._update_generic_data(await self.get(f"alms/{self.serial}")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pyIndego/indego_async_client.py", line 548, in get return await self._request(method=Methods.GET, path=path, timeout=timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pyIndego/indego_async_client.py", line 477, in _request self._token = await self._token_refresh_method() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/indego/init.py", line 329, in async_token_refresh await session.async_ensure_token_valid() File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 503, 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 92, in async_refresh_token new_token = await self._async_refresh_token(token) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 182, in _async_refresh_token new_token = await self._token_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 209, in _token_request resp.raise_for_status() File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1005, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://prodindego.b2clogin.com/prodindego.onmicrosoft.com/b2c_1a_signup_signin/oauth2/v2.0/token')

Thanks in advance for any help to get this working again.

lajosdani commented 10 months ago

I had the same issue for about a month now. Just reinstalled the integration, and it seems to work now. I should have tried it before...

jm-73 commented 10 months ago

Try to reinstall. Tell us how it plays out

35aportal commented 10 months ago

Many thanks for the quick response. I have deleted and then reinstalled the integration and it is now back and working.

Thanks again.

35aportal commented 10 months ago

Problem sorted with re-installing the integration