Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Detected Blocking Call #5

@ohshazbot

Description

@ohshazbot

Version of the custom_component

2025.6.1

homeassistant  | 2025-08-06 03:22:05.120 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/config/govee_learning.yaml',) inside the event loop by custom integration 'govee' at custom_components/govee/learning_storage.py, line 28: learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML) (offender: /usr/local/lib/python3.13/site-packages/annotatedyaml/loader.py, line 166: with open(fname, encoding="utf-8") as conf_file:), please create a bug report at https://github.com/TheOneOgre/govee-cloud/issues
homeassistant  | For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "<frozen runpy>", line 198, in _run_module_as_main
homeassistant  |   File "<frozen runpy>", line 88, in _run_code
homeassistant  |   File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
homeassistant  |     sys.exit(main())
homeassistant  |   File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
homeassistant  |     exit_code = runner.run(runtime_conf)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run
homeassistant  |     return loop.run_until_complete(setup_and_run_hass(runtime_config))
homeassistant  |   File "/usr/local/lib/python3.13/asyncio/base_events.py", line 706, in run_until_complete
homeassistant  |     self.run_forever()
homeassistant  |   File "/usr/local/lib/python3.13/asyncio/base_events.py", line 677, in run_forever
homeassistant  |     self._run_once()
homeassistant  |   File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2034, in _run_once
homeassistant  |     handle._run()
homeassistant  |   File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
homeassistant  |     self._context.run(self._callback, *self._args)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 894, in async_setup_locked
homeassistant  |     await self.async_setup(hass, integration=integration)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 660, in async_setup
homeassistant  |     await self.__async_setup_with_context(hass, integration)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context
homeassistant  |     result = await component.async_setup_entry(hass, self)
homeassistant  |   File "/config/custom_components/govee/__init__.py", line 64, in async_setup_entry
homeassistant  |     _, err = await hub.get_devices()
homeassistant  |   File "/usr/local/lib/python3.13/site-packages/govee_api_laggat/govee_api_laggat.py", line 312, in get_devices
homeassistant  |     _, err_api = await self._api.get_devices()                                                                                                                                                                              homeassistant  |   File "/usr/local/lib/python3.13/site-packages/govee_api_laggat/api.py", line 244, in get_devices
homeassistant  |     learning_infos = await self._govee._learning_storage._read_cached()
homeassistant  |   File "/usr/local/lib/python3.13/site-packages/govee_api_laggat/learning_storage.py", line 30, in _read_cached
homeassistant  |     self._learned_info = await self.read()                                                                                                                                                                                  homeassistant  |   File "/config/custom_components/govee/learning_storage.py", line 28, in read
homeassistant  |     learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML)

Describe the bug

Same as LaggAt/hacs-govee#244, fix possibly at LaggAt/hacs-govee#247

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions