Roborock Failed Setup

My Roborock integration started failing to connect. I tried reloading the integration, which usually fixes it, but no luck

When I try to uninstall and re-setup the Roborock integration, I’m getting Failed Setup. The app on my phone is loading and I can see my vacuum, but the integration is giving the following errors in my logs:

Error setting up entry 'email' for roborock

Logger: homeassistant.config_entries
Source: config_entries.py:575
First occurred: May 14, 2024 at 2:54:12 AM (1 occurrences)
Last logged: May 14, 2024 at 2:54:12 AM

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 575, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/roborock/init.py”, line 38, in async_setup_entry
home_data = await api_client.get_home_data(user_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/roborock/web_api.py”, line 201, in get_home_data
home_id = await self._get_home_id(user_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/roborock/web_api.py”, line 181, in _get_home_id
home_id_response = await home_id_request.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/roborock/web_api.py”, line 304, in request
return await resp.json()
^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py”, line 1176, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message=‘Attempt to decode JSON with unexpected mimetype: text/html’, url=URL(‘https://usiot.roborock.com/api/v1/getHomeDetail’)

Failed to connect (Unknown error.)

Logger: roborock.cloud_api
Source: /usr/local/lib/python3.12/site-packages/roborock/cloud_api.py:66
First occurred: May 13, 2024 at 6:29:40 AM (79145 occurrences)
Last logged: 7:56:30 PM

A network protocol error occurred when communicating with the broker.

Logger: roborock.cloud_api
Source: /usr/local/lib/python3.12/site-packages/roborock/api.py:87
First occurred: May 13, 2024 at 6:29:40 AM (79145 occurrences)
Last logged: 7:56:30 PM

Not setting up Roborock S8 Pro Ultra because we could not get the network information of the device. Please confirm it is online and the Roborock servers can communicate with it

Logger: homeassistant.components.roborock
Source: components/roborock/init.py:120
integration: Roborock (documentation, issues)
First occurred: May 13, 2024 at 6:29:40 AM (898 occurrences)
Last logged: 7:59:07 PM

When setting up, I entered my email address and the code that was sent to it.

I was able to get it working again after downgrading HA Core to 2024.4.4. The issue seems to be in version 2024.5.X

ha core update --version 2024.4.4