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 #743

Closed cloudbr34k84 closed 2 weeks ago

cloudbr34k84 commented 2 weeks ago

What version of Spook are you using?

2.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: 9:41:55 am (107 occurrences) Last logged: 9:42:27 am

Detected blocking call to import_module inside the event loop by custom integration 'spook' at custom_components/spook/util.py, line 55: module = importlib.import_module(f".{module_path}", package) (offender: /config/custom_components/spook/util.py, line 55: 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/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 2 weeks ago

duplicate of #681 and #740, fixed by #722