MizterB / homeassistant-phyn

16 stars 12 forks source link

API Error #8

Open pickett opened 1 year ago

pickett commented 1 year ago

Received this error today trying to re-initialize the integration.

Logger: homeassistant.config_entries Source: custom_components/phyn/init.py:28 Integration: Phyn First occurred: 8:11:45 AM (1 occurrences) Last logged: 8:11:45 AM

Error setting up entry HAHouse for phyn Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/phyn/init.py", line 28, in async_setup_entry hass.data[DOMAIN][entry.entry_id][CLIENT] = client = await async_get_api( ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aiophyn/api.py", line 140, in async_get_api await api.async_authenticate() File "/usr/local/lib/python3.11/site-packages/aiophyn/api.py", line 104, in async_authenticate auth_response = await asyncio.wrap_future(future) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ asyncio.exceptions.CancelledError: aiohttp connection lost

opq8 commented 1 year ago

I just set up this integration from scratch and did not run into this issue. There was recently a lot of changes to aiohttp in HA. Does this repro in the latest HA releases for you?

Hedda commented 9 months ago

FYI, it looks like jordanruthe has the most active fork(s) so might want to submit bugs/requests/PRs there if wish to collaborate:

https://github.com/jordanruthe/homeassistant-phyn

https://github.com/jordanruthe/aiophyn

https://github.com/jordanruthe/aiophyn/commits/dev/

And perhaps post link to the issue (without logs) to this existing community discussion in the Home Assistant forum:

https://community.home-assistant.io/t/phyn-integration-water-leak-detector/316197