home-assistant / home-assistant/core
Setup of config entry X for reolink integration cancelled
- Dominant language
- Python
- Stars
- 90.8k
- Forks
- 38.7k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 597
Description
### The problem
After latest upgrade of HA to 2026.9.2 my integration is broken again.
### What version of Home Assistant Core has the issue?
2026.9.2
### What was the last working version of Home Assistant Core?
2026.9.1
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
reolink
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/reolink
### Diagnostics information
```log
Rejestrator: homeassistant.components.reolink
Źródło: config_entries.py:803
Integracja: Reolink (dokumentacja, Problemy)
Pierwsze zdarzenie: 14 września 2026 18:16:26 (1 wystąpienie)
Ostatnio zalogowany: 14 września 2026 18:16:26
Setup of config entry 'MonitoringNVR' for reolink integration cancelled
Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/base_protocol.py", line 68, in connect
self._transport, self._protocol = await self._create_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/tcp_protocol.py", line 24, in _create_connection
return await self._loop.create_connection(lambda: BaichuanTcpClientProtocol(self._loop, self._host, self._push_callback, self._close_callback), self._host, self._port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1168, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1143, in create_connection
sock = await self._connect_sock(
^^^^^^^^^^^^^^^^^^^^^^^^^
exceptions, addrinfo, laddr_infos)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/base_events.py", line 1042, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.14/asyncio/selector_events.py", line 647, in sock_connect
return await fut
^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/selector_events.py", line 687, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 111] Connect call failed ('', 9000)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/baichuan.py", line 1707, in login
nonce = await self._get_nonce()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/baichuan.py", line 672, in _get_nonce
mess = await self.send(cmd_id=1, enc_type=EncType.BC, message_class="1465")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/baichuan.py", line 322, in send
return await self.send(cmd_id, channel, sub_channel, body, extension, enc_type, message_class, ch_id, mess_id, retry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/baichuan.py", line 322, in send
return await self.send(cmd_id, channel, sub_channel, body, extension, enc_type, message_class, ch_id, mess_id, retry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/baichuan.py", line 317, in send
await self._connect_if_needed()
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/baichuan.py", line 243, in _connect_if_needed
await self._connection.connect()
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/base_protocol.py", line 72, in connect
raise ReolinkConnectionError(f"Baichuan host {self._host}: Connection error: {str(err)}") from err
reolink_aio.exceptions.ReolinkConnectionError: Baichuan host : Connection error: [Errno 111] Connect call failed ('', 9000)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 803, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/reolink/__init__.py", line 83, in async_setup_entry
await host.async_init()
File "/usr/src/homeassistant/homeassistant/components/reolink/host.py", line 206, in async_init
await self._api.get_host_data()
File "/usr/local/lib/python3.14/site-packages/reolink_aio/api.py", line 2461, in get_host_data
await self.baichuan.get_host_data()
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/baichuan.py", line 1882, in get_host_data
mess = await self.send(cmd_id=199)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/baichuan.py", line 263, in send
await self.login()
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/baichuan.py", line 1712, in login
await self.logout()
File "/usr/local/lib/python3.14/site-packages/reolink_aio/baichuan/baichuan.py", line 1810, in logout
async with self._login_mutex:
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/asyncio/locks.py", line 14, in __aenter__
await self.acquire()
File "/usr/local/lib/python3.14/asyncio/locks.py", line 110, in acquire
await fut
asyncio.exceptions.CancelledError
```
### Example YAML snippet
```yaml
```
### Anything in the logs that might be useful for us?
```txt
```
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.