home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.03k stars 28.28k forks source link

airnow integration does blocking I/O in the event loop to import modules #116860

Open def1149 opened 1 week ago

def1149 commented 1 week ago

The problem

Detected blocking call to import_module inside the event loop by integration 'airnow' at homeassistant/components/airnow/sensor.py, line 87: .replace(tzinfo=get_time_zone(data[ATTR_API_REPORT_TZ])) (offender: /usr/local/lib/python3.12/importlib/resources/_common.py, line 82: return importlib.import_module(cand)), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+airnow%22

What version of Home Assistant Core has the issue?

2024.5.1

What was the last working version of Home Assistant Core?

??

What type of installation are you running?

Home Assistant OS

Integration causing the issue

AirNow

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 week ago

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

Code owner commands Code owners of `airnow` 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 airnow` 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)


airnow documentation airnow source (message by IssueLinks)

geokscott commented 6 days ago

Same problem here since 2024,5,2 or .3

Detected blocking call to import_module inside the event loop by integration 'airnow' at homeassistant/components/airnow/sensor.py, line 87: .replace(tzinfo=get_time_zone(data[ATTR_API_REPORT_TZ])) (offender: /usr/local/lib/python3.12/importlib/resources/_common.py, line 82: return importlib.import_module(cand))