frenck / spook

A scary 👻 powerful toolbox 🧰 for Home Assistant 🏡
https://spook.boo
MIT License
381 stars 36 forks source link

Detected blocking call to import_module inside the event loop #740

Closed tjorim closed 3 weeks ago

tjorim commented 3 weeks ago

What version of Spook are you using?

v2.2.4

What version of Home Assistant are you using?

2024.5.0b0

The problem

Logger: homeassistant.util.loop
Source: util/loop.py:99
First occurred: 22:13:11 (140 occurrences)
Last logged: 22:15:28

Detected blocking call to import_module inside the event loop by custom integration 'spook' at custom_components/spook/templating.py, line 122: module = importlib.import_module(f".{module_path}", __package__) (offender: /config/custom_components/spook/templating.py, line 122: module = importlib.import_module(f".{module_path}", __package__)), please create a bug report at https://github.com/frenck/spook/issues
Detected blocking call to import_module inside the event loop by custom integration 'spook' at custom_components/spook/services.py, line 272: module = importlib.import_module(f".{module_path}", __package__) (offender: /config/custom_components/spook/services.py, line 272: module = importlib.import_module(f".{module_path}", __package__)), please create a bug report at https://github.com/frenck/spook/issues
Detected blocking call to import_module inside the event loop by custom integration 'spook' at custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", __package__) (offender: /config/custom_components/spook/util.py, line 76: module = importlib.import_module(f".{module_path}", __package__)), please create a bug report at https://github.com/frenck/spook/issues
Detected blocking call to import_module inside the event loop by custom integration 'spook' at custom_components/spook/repairs.py, line 276: module = importlib.import_module(f".{module_path}", __package__) (offender: /config/custom_components/spook/repairs.py, line 276: module = importlib.import_module(f".{module_path}", __package__)), please create a bug report at https://github.com/frenck/spook/issues

Anything in the logs? Paste it here!

No response

frenck commented 3 weeks ago

Duplicate of #681, fixed by #722