Skip to content

Blocking I/O inside the event loop #258

@chezpaul

Description

@chezpaul

I get these all the time in my HA Log:

2025-08-27 21:18:04.424 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7f578ad2a180>, '/usr/local/lib/python3.13/site-packages/certifi/cacert.pem', None, None) inside the event loop by custom integration 'govee' at custom_components/govee/init.py, line 53: hub = await Govee.create( (offender: /usr/local/lib/python3.13/ssl.py, line 717: context.load_verify_locations(cafile, capath, cadata)), please create a bug report at https://github.com/LaggAt/hacs-govee/issues

2025-08-27 21:18:05.057 WARNING (MainThread) [custom_components.govee] API is back online.
2025-08-27 21:18:05.063 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/LaggAt/hacs-govee/issues

File "/config/custom_components/govee/init.py", line 64, in async_setup_entry
_, err = await hub.get_devices()
File "/usr/local/lib/python3.13/site-packages/govee_api_laggat/govee_api_laggat.py", line 312, in get_devices
_, err_api = await self._api.get_devices()
File "/usr/local/lib/python3.13/site-packages/govee_api_laggat/api.py", line 244, in get_devices
learning_infos = await self._govee._learning_storage._read_cached()
File "/usr/local/lib/python3.13/site-packages/govee_api_laggat/learning_storage.py", line 30, in _read_cached
self._learned_info = await self.read()
File "/config/custom_components/govee/learning_storage.py", line 28, in read
learned_dict = load_yaml(self._config_dir + LEARNING_STORAGE_YAML)

2025-08-27 21:18:09.771 WARNING (MainThread) [homeassistant.components.light] light.front_porch (<class 'custom_components.govee.light.GoveeLightEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/LaggAt/hacs-govee/issues
2025-08-27 21:18:09.772 WARNING (MainThread) [homeassistant.components.light] light.front_house (<class 'custom_components.govee.light.GoveeLightEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/LaggAt/hacs-govee/issues

2025-08-27 23:41:40.889 WARNING (MainThread) [homeassistant.components.light] light.studio_top (<class 'custom_components.govee.light.GoveeLightEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/LaggAt/hacs-govee/issues
2025-08-27 23:41:40.890 WARNING (MainThread) [homeassistant.components.light] light.outside_bedroom_top (<class 'custom_components.govee.light.GoveeLightEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/LaggAt/hacs-govee/issues
2025-08-27 23:41:40.891 WARNING (MainThread) [homeassistant.components.light] light.outside_bedroom_bottom (<class 'custom_components.govee.light.GoveeLightEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/LaggAt/hacs-govee/issues
2025-08-27 23:41:40.891 WARNING (MainThread) [homeassistant.components.light] light.outside_laundry_top (<class 'custom_components.govee.light.GoveeLightEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/LaggAt/hacs-govee/issues
2025-08-27 23:41:40.892 WARNING (MainThread) [homeassistant.components.light] light.studio_bottom (<class 'custom_components.govee.light.GoveeLightEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/LaggAt/hacs-govee/issues
2025-08-27 23:41:40.893 WARNING (MainThread) [homeassistant.components.light] light.outside_laundry_bottom (<class 'custom_components.govee.light.GoveeLightEntity'>) does not report a color mode, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/LaggAt/hacs-govee/issues

AI tells me this:
Blocking I/O inside the event loop (govee)

  • Severity/Logger: WARNING — homeassistant.util.loop
  • Occurrences: Several
  • Example: “Detected blocking call to load_verify_locations … inside the event loop by custom integration ‘govee’ … and integration ‘triggercmd’”
  • Importance: 7/10
  • Why: Blocking inside the event loop can stall HA responsiveness and startup; needs attention soon.
  • Suggested fix: Update those integrations to versions that use proper async I/O; if custom, file an issue upstream; temporarily disable if causing slowdowns.

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