core: melcloud error after update to 2023.11.2

The problem

integration error after update haos.

ERROR: 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 "/usr/src/homeassistant/homeassistant/components/melcloud/__init__.py", line 69, in async_setup_entry mel_devices = await mel_devices_setup(hass, conf[CONF_TOKEN]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/melcloud/__init__.py", line 167, in mel_devices_setup all_devices = await get_devices( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pymelcloud/__init__.py", line 49, in get_devices await _client.update_confs() File "/usr/local/lib/python3.11/site-packages/pymelcloud/client.py", line 157, in update_confs await self._fetch_user_details() File "/usr/local/lib/python3.11/site-packages/pymelcloud/client.py", line 109, in _fetch_user_details async with self._session.get( File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1141, in __aenter__ self._resp = await self._coro ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 643, in _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: 401, message='Unauthorized', url=URL('https://app.melcloud.com/Mitsubishi.Wifi.Client/User/GetUserDetails')

What version of Home Assistant Core has the issue?

core-2023.11.2

What was the last working version of Home Assistant Core?

core-2023.11.1

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Reactions: 7
  • Comments: 24 (6 by maintainers)

Most upvoted comments

This seemed to help for me. It was possible to reload the integration after refreshing the token without removing the integration. I don’t know if the problem were related to HA or to MELCloud. It may as well be the token that expired somehow.

Workaround:

Goto settings -> Device & Service (the 2nd one in the list, we have a dutch version so not sure about the actual name). Click on the Melcloud integration Try to add a new device by clicking on "add item’ (“Item toevoegen” in dutch). Enter your email & password

https://github.com/home-assistant/core/issues/104261

Same problem here. Tested to reboot the system but did not help. Removed the integration and installed it again and its working again now.