ankohanse / hass-dab-pumps

Home Assistant Custom Integration for DAB Pumps via the DAB Live or DConnect service
MIT License
13 stars 2 forks source link

Closes httpx.Client #41

Closed domenicoblanco closed 1 month ago

domenicoblanco commented 1 month ago

Describe the bug A new warning appears every time I reboot my hass server, this error appears in the logs: Logger: homeassistant.helpers.frame Source: helpers/frame.py:184 First occurred: 00:15:19 (1 occurrences) Last logged: 00:15:19

Detected that custom integration 'dabpumps' closes the Home Assistant httpx client at custom_components/dabpumps/api.py, line 281: await self._client.aclose(), please create a bug report at https://github.com/ankohanse/hass-dab-pumps/issues

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings after a reboot
  2. Click on System
  3. Click on Log
  4. See error

Expected behavior That the httpx client isn't closed

Additional context

ankohanse commented 1 month ago

Thanks for reporting this, will look into it

domenicoblanco commented 1 month ago

Thanks!

ankohanse commented 1 month ago

This should be fixed in release v2024.10.1 that I have published just now.