Move loading of ha-av to the executor (#113485)

This commit is contained in:
J. Nick Koston 2024-03-15 00:02:10 -10:00 committed by GitHub
parent 2b2b5a2b02
commit 4df2398b9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,7 +220,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
logging.getLogger(logging_namespace).setLevel(logging.ERROR)
# This will load av so we run it in the executor
await hass.async_add_import_executor_job(set_pyav_logging, debug_enabled)
await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
# Keep import here so that we can import stream integration without installing reqs
# pylint: disable-next=import-outside-toplevel