rsnodgrass / hass-poolmath

Pool Math for Home Assistant
Other
30 stars 9 forks source link

Fail to Update #11

Closed Ace0510 closed 2 years ago

Ace0510 commented 3 years ago

After updating to core-2021.8.2 it no longer updates the values. However the link is good. I can display the values via web browser.

Ace0510 commented 2 years ago

Here is the log: Logger: homeassistant.components.sensor Source: custom_components/poolmath/client.py:34 Integration: Sensor (documentation, issues) First occurred: 7:02:31 PM (1 occurrences) Last logged: 7:02:31 PM

poolmath: Error on device update! Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions yield File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 283, in handle_async_request ) = await self._pool.handle_async_request( File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 237, in handle_async_request response = await connection.handle_async_request( File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 136, in handle_async_request self.socket = await self._open_socket(timeout) File "/usr/local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 163, in _open_socket return await self._backend.open_tcp_stream( File "/usr/local/lib/python3.9/site-packages/httpcore/_backends/auto.py", line 44, in open_tcp_stream return await self.backend.open_tcp_stream( File "/usr/local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 154, in open_tcp_stream stream = await TLSStream.wrap( File "/usr/local/lib/python3.9/contextlib.py", line 135, in exit self.gen.throw(type, value, traceback) File "/usr/local/lib/python3.9/site-packages/httpcore/_exceptions.py", line 12, in map_exceptions raise to_exc(exc) from None httpcore.ConnectTimeout

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

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 646, in async_device_update await task File "/config/custom_components/poolmath/sensor.py", line 117, in async_update soup = await client.async_update() File "/config/custom_components/poolmath/client.py", line 34, in async_update response = await client.request("GET", self._url, timeout=self._timeout) File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1481, in request response = await self.send( File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1568, in send response = await self._send_handling_auth( File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1604, in _send_handling_auth response = await self._send_handling_redirects( File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1640, in _send_handling_redirects response = await self._send_single_request(request, timeout) File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1681, in _send_single_request ) = await transport.handle_async_request( File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 278, in handle_async_request ( File "/usr/local/lib/python3.9/contextlib.py", line 135, in exit self.gen.throw(type, value, traceback) File "/usr/local/lib/python3.9/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ConnectTimeout

rsnodgrass commented 2 years ago

The host your HA instance is on is having issues connecting to the http URL. It is timing out on connect. There is some failure to connect from HA to PoolMath, e.g. your router or firewall is blocking access. This is not an issue with the Poolmath client.