Warning MSG | [homeassistant.util.loop] Detected blocking call to listdir with args
The problem
Got this line:
WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to listdir with args ('/config/deps/lib/python3.12/site-packages',) inside the event loop by integration 'zha' at homeassistant/components/zha/diagnostics.py, line 84: "bellows": version("bellows"), (offender: /usr/local/lib/python3.12/importlib/metadata/__init__.py, line 680: return os.listdir(self.root or '.')),
Sorry if there is a bug report form that I don't follow - can't find one easily
What version of Home Assistant Core has the issue?
core-2024.7.4
What was the last working version of Home Assistant Core?
core-2024.10.2
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ZHA
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha
Diagnostics information
home-assistant_zha_2024-10-14T22-51-57.282Z.log
Example YAML snippet
- id: '1725021335851'
alias: Yair Light Toggle
description: ''
trigger:
- device_id: e283c6cdaacdd1d74de3166795ec216e
domain: zha
platform: device
type: remote_button_short_press
subtype: button_1
condition: []
action:
- service: light.toggle
metadata: {}
data: {}
target:
entity_id: light.bedroom_light
mode: single
Anything in the logs that might be useful for us?
No response
Additional information
No response
Hey there @dmulcahey, @adminiuga, @puddly, @thejulianjes, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of zha can trigger bot actions by commenting:
-
@home-assistant closeCloses the issue. -
@home-assistant rename Awesome new titleRenames the issue. -
@home-assistant reopenReopen the issue. -
@home-assistant unassign zhaRemoves the current integration label and assignees on the issue, add the integration domain after the command. -
@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue. -
@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Are any of the Devs able to look into this? I am unable to use the PVoutput.org integration. This, apparently, is the problem.
https://developers.home-assistant.io/docs/asyncio_blocking_operations/#listdir
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
This was fixed a while ago.
@johnthomas22 Note that this is a warning, not an error, so it wouldn't stop anything from functioning.