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
68.78k stars 28.11k forks source link

Detected blocking call by local_todo #116149

Closed gieljnssns closed 4 days ago

gieljnssns commented 1 week ago

The problem

Since 2025.0b0 there is a warning for local_todo

What version of Home Assistant Core has the issue?

core-2024.5.0b0

What was the last working version of Home Assistant Core?

core-2024.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Local todo

Link to integration documentation on our website

https://rc.home-assistant.io/integrations/local_todo/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-04-25 08:20:41.893 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by integration 'local_todo' at homeassistant/components/local_todo/todo.py, line 72: calendar = IcsCalendarStream.calendar_from_ics(ics) (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+local_todo%22

Additional information

No response

home-assistant[bot] commented 1 week ago

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

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


local_todo documentation local_todo source (message by IssueLinks)

bdraco commented 1 week ago

Looks like ical.tzif.timezoneinfo is likely doing the I/O