Skip to content

Risco cloud is blocking the HA user agent #167776

@XalaTheShepard

Description

@XalaTheShepard

The problem

Dear maintainer,

My Risco integration suddenly stopped working overnight.
The Risco Cloud app still works and no maintenance has been done, nor new devices added.
I had a look at the open issues, and the logs indicate a different issue.
Please find the logs below.
Could you please have a look at this issue?

Many thanks in advance.

Kind regards,

Robin

Logger: homeassistant.config_entries
Source: config_entries.py:769
First occurred: 11:54:45 AM (1 occurrence)
Last logged: 11:54:45 AM

Error setting up entry Thuis for risco
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 769, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/risco/init.py", line 66, in async_setup_entry
return await _async_setup_cloud_entry(hass, entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/risco/init.py", line 134, in _async_setup_cloud_entry
await risco.login(async_get_clientsession(hass))
File "/usr/local/lib/python3.14/site-packages/pyrisco/cloud/risco_cloud.py", line 139, in login
await self._login_user_pass()
File "/usr/local/lib/python3.14/site-packages/pyrisco/cloud/risco_cloud.py", line 90, in _login_user_pass
json = await resp.json()
^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 188, in json
return await super().json(*args, loads=loads, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/aiohttp/client_reqrep.py", line 756, in json
raise ContentTypeError(
...<7 lines>...
)
aiohttp.client_exceptions.ContentTypeError: 403, message='Attempt to decode JSON with unexpected mimetype: text/html', url='https://www.riscocloud.com/webapi/api/auth/login'

What version of Home Assistant Core has the issue?

2026.4.1

What was the last working version of Home Assistant Core?

2026.4.1

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Risco

Link to integration documentation on our website

https://www.home-assistant.io/integrations/risco/

Diagnostics information

home-assistant_risco_2026-04-09T10-27-57.879Z.log

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions