#System with over 200s startup time
1 messages · Page 1 of 1 (latest)
Okay, happy to help in improving HA on that system 🙂
Can you try turning on the loader logging as described in the channel above?
It doesn't look like debug logging for homeassistant.loader is turned on?
now I see the right logs https://dpaste.org/hvL5p
2024-02-29 19:25:53.505 DEBUG (MainThread) [homeassistant.loader] Importing platform dsmr.config_flow took 1.84s (loaded_executor=False)
anything that is >0.25s and loaded_executor=False needs an issue
2024-02-29 19:26:05.844 DEBUG (MainThread) [homeassistant.loader] Component openai_conversation import took 1.327 seconds (loaded_executor=False)
2024-02-29 19:25:44.109 DEBUG (MainThread) [homeassistant.loader] Component xiaomi_miio import took 1.497 seconds (loaded_executor=False)
2024-02-29 19:27:20.016 DEBUG (MainThread) [homeassistant.loader] Importing platform switchbot.config_flow took 0.38s (loaded_executor=False)
2024-02-29 19:27:15.001 DEBUG (MainThread) [homeassistant.loader] Importing platform xiaomi_aqara.config_flow took 0.37s (loaded_executor=False)
2024-02-29 19:27:13.649 DEBUG (MainThread) [homeassistant.loader] Importing platform upnp.config_flow took 0.49s (loaded_executor=False)
2024-02-29 19:26:55.993 DEBUG (MainThread) [homeassistant.loader] Importing platform dlna_dms.config_flow took 0.62s (loaded_executor=False)
2024-02-29 19:26:31.486 DEBUG (MainThread) [homeassistant.loader] Component bluetooth_adapters import took 0.252 seconds (loaded_executor=False)
2024-02-29 19:26:14.419 DEBUG (MainThread) [homeassistant.loader] Component google import took 0.749 seconds (loaded_executor=False)
2024-02-29 19:26:11.369 DEBUG (MainThread) [homeassistant.loader] Component wyoming import took 0.758 seconds (loaded_executor=False)
2024-02-29 19:26:05.844 DEBUG (MainThread) [homeassistant.loader] Component openai_conversation import took 1.327 seconds (loaded_executor=False)
2024-02-29 19:25:53.505 DEBUG (MainThread) [homeassistant.loader] Importing platform dsmr.config_flow took 1.84s (loaded_executor=False)
2024-02-29 19:25:51.298 DEBUG (MainThread) [homeassistant.loader] Importing platform smartthinq_sensors.config_flow took 0.41s (loaded_executor=False)
2024-02-29 19:25:49.733 DEBUG (MainThread) [homeassistant.loader] Component ping import took 0.282 seconds (loaded_executor=False)
2024-02-29 19:25:48.470 DEBUG (MainThread) [homeassistant.loader] Component anniversaries import took 0.604 seconds (loaded_executor=False)
2024-02-29 19:25:47.312 DEBUG (MainThread) [homeassistant.loader] Component overkiz import took 0.329 seconds (loaded_executor=False)
2024-02-29 19:25:46.980 DEBUG (MainThread) [homeassistant.loader] Component hacs import took 0.719 seconds (loaded_executor=False)
2024-02-29 19:25:46.244 DEBUG (MainThread) [homeassistant.loader] Component rdw import took 0.621 seconds (loaded_executor=False)
2024-02-29 19:25:44.461 DEBUG (MainThread) [homeassistant.loader] Component history import took 0.348 seconds (loaded_executor=False)
2024-02-29 19:25:44.109 DEBUG (MainThread) [homeassistant.loader] Component xiaomi_miio import took 1.497 seconds (loaded_executor=False)
2024-02-29 19:25:29.498 DEBUG (MainThread) [homeassistant.loader] Component search import took 0.287 seconds (loaded_executor=False)
why are there 2 different phrases used?
one is for platforms (only config flows in this case) and one is for the base integration
if you see if import the config flow its likely because of discovery
Should I mention anything specifically in the log issue?
And what needs to be changed, if I remember correctly it needs a change in the manifest.json (I remember reading something for custom components). I can issue a PR for that, but I need to link sto some background info to explain
"import_executor": true in manfest.json
I think the only thing you need to mention is it takes a while to import and if import_executor isn't set, the whole event loop is blocked for the duration of the import
Okay, just to check, it's import_executor? As the log message mentions loaded_executor
and it's just ignored on previous versions prior to 2024.3 right? So it's nog a problem to release it now
Correct it will just do nothing on old versions and continue to load in the event loop and block it, but obviously we can’t fix old versions
And import_executor is the correct key for in the manifest