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

Warning in log #102

Open
brinkgit opened this issue May 5, 2024 · 2 comments
Open

Warning in log #102

brinkgit opened this issue May 5, 2024 · 2 comments

Comments

@brinkgit
Copy link

brinkgit commented May 5, 2024

In the log I find the next warning:

Logger: homeassistant.util.loop
Bron: util/loop.py:99
Eerst voorgekomen: 13:54:08 (48 gebeurtenissen)
Laatst gelogd: 14:11:00

Detected blocking call to import_module inside the event loop by custom integration 'smartthings' at custom_components/smartthings/__init__.py, line 291: platform_module = importlib.import_module( (offender: /config/custom_components/smartthings/__init__.py, line 291: platform_module = importlib.import_module(), please create a bug report at https://github.com/veista/smartthings/issues

It askes to report here, so I do

@cedricboitte
Copy link

Same situation here ...

Detected blocking call to import_module inside the event loop by custom integration 'smartthings' at custom_components/smartthings/init.py, line 291: platform_module = importlib.import_module( (offender: /config/custom_components/smartthings/init.py, line 291: platform_module = importlib.import_module(), please create a bug report at https://github.com/veista/smartthings/issues Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 452, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 543, in _handle resp = await handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware response = await handler(request) File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle result = await handler(request, **request.match_info) File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 120, in post await hass.config_entries.async_reload(entry_id) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1897, in async_reload return await self.async_setup(entry_id, _lock=False) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1821, in async_setup await entry.async_setup(self.hass) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/smartthings/init.py", line 157, in async_setup_entry broker = DeviceBroker(hass, entry, token, smart_app, devices, scenes) File "/config/custom_components/smartthings/init.py", line 280, in init self._assignments = self._assign_capabilities(devices) File "/config/custom_components/smartthings/init.py", line 291, in _assign_capabilities platform_module = importlib.import_module(

@cgraf
Copy link

cgraf commented Aug 5, 2024

#96 (comment)

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

No branches or pull requests

3 participants