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

Detected blocking call to open inside the event loop by custom integration 'xiaomi_miot' at custom_components/xiaomi_miot/__init__.py, line 208: #1745

Closed
reysonk opened this issue Jul 5, 2024 · 0 comments · Fixed by #1729

Comments

@reysonk
Copy link

reysonk commented Jul 5, 2024

2024-07-05T18:41:55.054695204Z 2024-07-06 01:41:55.051 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'xiaomi_miot' at custom_components/xiaomi_miot/init.py, line 208: with open(os.path.dirname(file) + '/core/miot_specs_extend.json') as file: (offender: /config/custom_components/xiaomi_miot/init.py, line 208: with open(os.path.dirname(file) + '/core/miot_specs_extend.json') as file:), please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues

2024-07-05T18:41:55.054727963Z Traceback (most recent call last):

2024-07-05T18:41:55.054733516Z File "", line 198, in _run_module_as_main

2024-07-05T18:41:55.054739080Z File "", line 88, in _run_code

2024-07-05T18:41:55.054744262Z File "/usr/src/homeassistant/homeassistant/main.py", line 223, in

2024-07-05T18:41:55.054749726Z sys.exit(main())

2024-07-05T18:41:55.054754266Z File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main

2024-07-05T18:41:55.054768366Z exit_code = runner.run(runtime_conf)

2024-07-05T18:41:55.054773590Z File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run

2024-07-05T18:41:55.054778765Z return loop.run_until_complete(setup_and_run_hass(runtime_config))

2024-07-05T18:41:55.054782963Z File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete

2024-07-05T18:41:55.054787133Z self.run_forever()

2024-07-05T18:41:55.054790883Z File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever

2024-07-05T18:41:55.054794962Z self._run_once()

2024-07-05T18:41:55.054798610Z File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, in _run_once

2024-07-05T18:41:55.054802659Z handle._run()

2024-07-05T18:41:55.054806258Z File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run

2024-07-05T18:41:55.054810268Z self._context.run(self._callback, *self._args)

2024-07-05T18:41:55.054814059Z File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component

2024-07-05T18:41:55.054817998Z result = await _async_setup_component(hass, domain, config)

2024-07-05T18:41:55.054822034Z File "/usr/src/homeassistant/homeassistant/setup.py", line 402, in _async_setup_component

2024-07-05T18:41:55.054826090Z result = await task

2024-07-05T18:41:55.054829770Z File "/config/custom_components/xiaomi_miot/init.py", line 208, in async_setup

2024-07-05T18:41:55.054833873Z with open(os.path.dirname(file) + '/core/miot_specs_extend.json') as file:

2024-07-05T18:41:55.054837964Z

@al-one al-one linked a pull request Jul 7, 2024 that will close this issue
@al-one al-one closed this as completed Jul 7, 2024
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

Successfully merging a pull request may close this issue.

2 participants