Since updating to core-2026.3.0 the Portainer integration seems to have stopped working.
Error message from logs put in "Anything in the logs that might be useful for us?"
Which it accepts, but get the same error. Same with reloading the integration.
Logger: homeassistant.components.portainer.coordinator
Source: helpers/update_coordinator.py:356
integration: Portainer (documentation, issues)
First occurred: 12:04:27 (38 occurrences)
Last logged: 12:26:34
Unexpected error fetching portainer data
Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 1313, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs, sock=sock)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1198, in create_connection
transport, protocol = await self._create_connection_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
ssl_shutdown_timeout=ssl_shutdown_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1231, in _create_connection_transport
await waiter
File "/usr/local/lib/python3.14/asyncio/sslproto.py", line 581, in _on_handshake_complete
raise handshake_exc
File "/usr/local/lib/python3.14/asyncio/sslproto.py", line 563, in _do_handshake
self._sslobj.do_handshake()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/ssl.py", line 951, in do_handshake
self._sslobj.do_handshake()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/pyportainer/pyportainer.py", line 152, in _request
response = await self._session.request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
)
^
File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 779, in _request
resp = await handler(req)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/aiohttp/client_middlewares.py", line 36, in single_middleware_handler
return await middleware(req, handler)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 72, in _ssrf_redirect_middleware
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 734, in _connect_and_send_request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
req, traces=traces, timeout=real_timeout
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 672, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 1239, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 1611, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 1580, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<7 lines>...
)
^
File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 1315, in _wrap_create_connection
raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host 10.112.1.72:9443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)')]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/portainer/coordinator.py", line 113, in _async_setup
await self.portainer.get_endpoints()
File "/usr/local/lib/python3.14/site-packages/pyportainer/pyportainer.py", line 385, in get_endpoints
endpoints = await self._request("endpoints")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/pyportainer/pyportainer.py", line 143, in _request
async for attempt in AsyncRetrying(
...<32 lines>...
raise PortainerConnectionError(msg) from err
File "/usr/local/lib/python3.14/site-packages/tenacity/asyncio/__init__.py", line 166, in __anext__
do = await self.iter(retry_state=self._retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
result = await action(retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/tenacity/_utils.py", line 99, in inner
return call(*args, **kwargs)
File "/usr/local/lib/python3.14/site-packages/tenacity/__init__.py", line 418, in exc_check
raise retry_exc.reraise()
~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/tenacity/__init__.py", line 185, in reraise
raise self.last_attempt.result()
~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 443, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result
raise self._exception
File "/usr/local/lib/python3.14/site-packages/pyportainer/pyportainer.py", line 176, in _request
raise PortainerConnectionError(msg) from err
pyportainer.exceptions.PortainerConnectionError: Unexpected error during GET https://10.112.1.72:9443/api/endpoints: Cannot connect to host 10.112.1.72:9443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)')]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 356, in __wrap_async_setup
await self._async_setup()
File "/usr/src/homeassistant/homeassistant/components/portainer/coordinator.py", line 121, in _async_setup
raise ConfigEntryNotReady(
...<3 lines>...
) from err
homeassistant.exceptions.ConfigEntryNotReady: An error occurred while trying to connect to the Portainer instance: PortainerConnectionError("Unexpected error during GET https://10.112.1.72:9443/api/endpoints: Cannot connect to host 10.112.1.72:9443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)')]")
The problem
Since updating to core-2026.3.0 the Portainer integration seems to have stopped working.
Error in integration GUI shows:
Failed setup, will retry: An error occurred while trying to connect to the Portainer instance: PortainerConnectionError("Unexpected error during GET https://10.112.1.72:9443/api/endpoints: Cannot connect to host 10.112.1.72:9443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)')]")Error message from logs put in "Anything in the logs that might be useful for us?"
Integration settings (no change to set up other that updating HASOS)
Using the URL - https://XXX.XXX.XXX.XXX:9443/
Verify SSL certificate - Enabled
Tried reconfiguring from the GUI using:
Verify SSL certificate - Enabled
Which it accepts, but get the same error. Same with reloading the integration.
Running portainer CE 2.39.0 LTS on a Pi running bookworm
What version of Home Assistant Core has the issue?
core-2026.3.0
What was the last working version of Home Assistant Core?
Yes
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Portainer
Link to integration documentation on our website
https://www.home-assistant.io/integrations/portainer
Diagnostics information
Not available
Example YAML snippet
Anything in the logs that might be useful for us?
Logger: homeassistant.components.portainer.coordinator Source: helpers/update_coordinator.py:356 integration: Portainer (documentation, issues) First occurred: 12:04:27 (38 occurrences) Last logged: 12:26:34 Unexpected error fetching portainer data Traceback (most recent call last): File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 1313, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs, sock=sock) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1198, in create_connection transport, protocol = await self._create_connection_transport( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<2 lines>... ssl_shutdown_timeout=ssl_shutdown_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1231, in _create_connection_transport await waiter File "/usr/local/lib/python3.14/asyncio/sslproto.py", line 581, in _on_handshake_complete raise handshake_exc File "/usr/local/lib/python3.14/asyncio/sslproto.py", line 563, in _do_handshake self._sslobj.do_handshake() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.14/ssl.py", line 951, in do_handshake self._sslobj.do_handshake() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.14/site-packages/pyportainer/pyportainer.py", line 152, in _request response = await self._session.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... ) ^ File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 779, in _request resp = await handler(req) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/aiohttp/client_middlewares.py", line 36, in single_middleware_handler return await middleware(req, handler) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 72, in _ssrf_redirect_middleware resp = await handler(request) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 734, in _connect_and_send_request conn = await self._connector.connect( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ req, traces=traces, timeout=real_timeout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 672, in connect proto = await self._create_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 1239, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 1611, in _create_direct_connection raise last_exc File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 1580, in _create_direct_connection transp, proto = await self._wrap_create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<7 lines>... ) ^ File "/usr/local/lib/python3.14/site-packages/aiohttp/connector.py", line 1315, in _wrap_create_connection raise ClientConnectorCertificateError(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host 10.112.1.72:9443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)')] The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/portainer/coordinator.py", line 113, in _async_setup await self.portainer.get_endpoints() File "/usr/local/lib/python3.14/site-packages/pyportainer/pyportainer.py", line 385, in get_endpoints endpoints = await self._request("endpoints") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/pyportainer/pyportainer.py", line 143, in _request async for attempt in AsyncRetrying( ...<32 lines>... raise PortainerConnectionError(msg) from err File "/usr/local/lib/python3.14/site-packages/tenacity/asyncio/__init__.py", line 166, in __anext__ do = await self.iter(retry_state=self._retry_state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/tenacity/asyncio/__init__.py", line 153, in iter result = await action(retry_state) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.14/site-packages/tenacity/_utils.py", line 99, in inner return call(*args, **kwargs) File "/usr/local/lib/python3.14/site-packages/tenacity/__init__.py", line 418, in exc_check raise retry_exc.reraise() ~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.14/site-packages/tenacity/__init__.py", line 185, in reraise raise self.last_attempt.result() ~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 443, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result raise self._exception File "/usr/local/lib/python3.14/site-packages/pyportainer/pyportainer.py", line 176, in _request raise PortainerConnectionError(msg) from err pyportainer.exceptions.PortainerConnectionError: Unexpected error during GET https://10.112.1.72:9443/api/endpoints: Cannot connect to host 10.112.1.72:9443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)')] The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 356, in __wrap_async_setup await self._async_setup() File "/usr/src/homeassistant/homeassistant/components/portainer/coordinator.py", line 121, in _async_setup raise ConfigEntryNotReady( ...<3 lines>... ) from err homeassistant.exceptions.ConfigEntryNotReady: An error occurred while trying to connect to the Portainer instance: PortainerConnectionError("Unexpected error during GET https://10.112.1.72:9443/api/endpoints: Cannot connect to host 10.112.1.72:9443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)')]")Additional information
No response