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

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

Open
def1149 opened this issue May 5, 2024 · 2 comments · May be fixed by #117615
Open

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

def1149 opened this issue May 5, 2024 · 2 comments · May be fixed by #117615

Comments

@def1149
Copy link

def1149 commented May 5, 2024

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

@bdraco bdraco changed the title AirNow error in log airnow Integration integration does blocking I/O in the event loop to import modules May 5, 2024
@bdraco bdraco changed the title airnow Integration integration does blocking I/O in the event loop to import modules airnow integration integration does blocking I/O in the event loop to import modules May 5, 2024
@bdraco bdraco changed the title airnow integration integration does blocking I/O in the event loop to import modules airnow integration does blocking I/O in the event loop to import modules May 5, 2024
@home-assistant
Copy link

home-assistant bot commented May 5, 2024

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
Copy link

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))

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

Successfully merging a pull request may close this issue.

3 participants