Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydrawise integration deadlocking my system #137149

Open
db3000 opened this issue Feb 2, 2025 · 1 comment
Open

Hydrawise integration deadlocking my system #137149

db3000 opened this issue Feb 2, 2025 · 1 comment

Comments

@db3000
Copy link

db3000 commented Feb 2, 2025

The problem

For the past few weeks, my homeassistant setup has been periodically becoming non-responsive. HTTP requests to the frontend sit loading forever and I need to restart homeassistant before I can access anything.

I started grabbing stack traces using pystack and the main thread always seems to be stuck inside calls to the Hydrawise integration, even if I wait a few minutes I get the same trace. Here is a sample:

Traceback for thread 60981 [] (most recent call last):
    (Python) File "<frozen runpy>", line 198, in _run_module_as_main
    (Python) File "<frozen runpy>", line 88, in _run_code
    (Python) File "/usr/local/lib/python3.13/site-packages/homeassistant/__main__.py", line 227, in <module>
    (Python) File "/usr/local/lib/python3.13/site-packages/homeassistant/__main__.py", line 213, in main
    (Python) File "/usr/local/lib/python3.13/site-packages/homeassistant/runner.py", line 154, in run
    (Python) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 707, in run_until_complete
    (Python) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 678, in run_forever
    (Python) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2033, in _run_once
    (Python) File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
    (Python) File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/update_coordinator.py", line 251, in __wrap_handle_refresh_interval
    (Python) File "/usr/local/lib/python3.13/site-packages/homeassistant/config_entries.py", line 1180, in async_create_background_task
    (Python) File "/usr/local/lib/python3.13/site-packages/homeassistant/core.py", line 864, in async_create_background_task
    (Python) File "/usr/local/lib/python3.13/site-packages/homeassistant/util/async_.py", line 45, in create_eager_task
    (Python) File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/update_coordinator.py", line 267, in _handle_refresh_interval
    (Python) File "/usr/local/lib/python3.13/site-packages/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
    (Python) File "/usr/local/lib/python3.13/site-packages/homeassistant/components/hydrawise/coordinator.py", line 102, in _async_update_data
    (Python) File "/usr/local/lib/python3.13/site-packages/pydrawise/client.py", line 433, in get_water_use_summary
    (Python) File "/usr/local/lib/python3.13/site-packages/pydrawise/client.py", line 92, in _query
    (Python) File "/usr/local/lib/python3.13/site-packages/pydrawise/client.py", line 84, in _client
    (Python) File "/usr/local/lib/python3.13/site-packages/pydrawise/auth.py", line 80, in token
    (Python) File "/usr/local/lib/python3.13/site-packages/pydrawise/auth.py", line 69, in check_token

This seems to have started around the start of the year, hard to pinpoint exactly when but possibly when I upgraded from homeassistant 2024.x to 2025.x

What version of Home Assistant Core has the issue?

core-2025.1.4

What was the last working version of Home Assistant Core?

core-2024???

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Hydrawise

Link to integration documentation on our website

https://www.home-assistant.io/integrations/hydrawise/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Feb 2, 2025

Hey there @dknowles2, @thomaskistler, @ptcryan, mind taking a look at this issue as it has been labeled with an integration (hydrawise) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of hydrawise can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign hydrawise Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


hydrawise documentation
hydrawise source
(message by IssueLinks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant