siku2 / hass-dingz

Home Assistant support for dingz wall switches
MIT License
14 stars 5 forks source link

Not working with 2024.5 release #50

Closed siuvoniazzi closed 5 months ago

siuvoniazzi commented 5 months ago

This error originated from a custom integration.

Logger: custom_components.dingz.shared Source: custom_components/dingz/shared.py:203 integration: Dingz (documentation, issues) First occurred: 08:50:05 (22 occurrences) Last logged: 08:53:20

update state data failed Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1025, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1120, in create_connection raise exceptions[0] File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1102, in create_connection sock = await self._connect_sock( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1005, in _connect_sock await self.sock_connect(sock, address) File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 641, in sock_connect return await fut ^^^^^^^^^ File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 681, in _sock_connect_cb raise OSError(err, f'Connect call failed {address}') OSError: [Errno 113] Connect call failed ('192.168.86.234', 80)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/config/custom_components/dingz/shared.py", line 203, in _async_update_data return await self.shared.client.get_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dingz/api.py", line 504, in get_state return await self._get("state") ^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dingz/api.py", line 469, in _get return await _repeat(once, attempts=attempts, retry_delay=retry_delay) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dingz/api.py", line 645, in _repeat raise last_exc File "/config/custom_components/dingz/api.py", line 639, in _repeat return await once_fn() ^^^^^^^^^^^^^^^ File "/config/custom_components/dingz/api.py", line 465, in once async with self._session.get(url, raise_for_status=True) as resp: File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1197, in aenter self._resp = await self._coro ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 581, in _request conn = await self._connector.connect( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 544, in connect proto = await self._create_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 944, in _createconnection , proto = await self._create_direct_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1257, in _create_direct_connection raise last_exc File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1226, in _create_direct_connection transp, proto = await self._wrap_create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1033, in _wrap_create_connection raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 192.168.86.234:80 ssl:default [Connect call failed ('192.168.86.234', 80)]

siku2 commented 5 months ago

The error message looks like a generic connection issue. Is it possible that the IP address of the device changed?

siuvoniazzi commented 5 months ago

Yup, that was it. My bad.

Thanks!