core: nVent Senz integration periodically stops working
The problem
After upgrades to HA (even minor upgrades), in almost all (or perhaps all?) cases, the nVent Senz integration stops working. The logs show a 500 error when talking to Account Link.
The only solution I am able to find is removing the integration and re-adding it (which includes going via Account Link to re-establish API authorisation). Then it works fine again until the next upgrade.
This has been persisting since at least 2022.6.3 (see forum post) and possibly earlier. The Senz integration was merged in 2022.05.
What version of Home Assistant Core has the issue?
2022.11.5
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
senz
Link to integration documentation on our website
https://www.home-assistant.io/integrations/senz/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2022-12-05 08:27:29.394 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home Assistant Cloud for senz
File "/usr/src/homeassistant/homeassistant/components/senz/__init__.py", line 73, in async_setup_entry
account = await senz_api.get_account()
File "/usr/local/lib/python3.10/site-packages/aiosenz/api.py", line 35, in get_account
File "/usr/local/lib/python3.10/site-packages/aiosenz/auth.py", line 55, in _request
File "/usr/src/homeassistant/homeassistant/components/senz/api.py", line 24, in get_access_token
aiohttp.client_exceptions.ClientResponseError: 500, message='Internal Server Error', url=URL('https://account-link.nabucasa.com/refresh_token/senz')
Additional information
No response
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 9
- Comments: 29
Went ahead and create a new separate issue, #108782, for the new problem (with the hope it gets some attention).