mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Avoid blocking IO in downloader config flow (#114741)
This commit is contained in:
committed by
GitHub
parent
e522f2f67e
commit
b9f27d2b31
@@ -59,7 +59,7 @@ class DownloaderConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
if not os.path.isabs(download_path):
|
||||
download_path = self.hass.config.path(download_path)
|
||||
|
||||
if not os.path.isdir(download_path):
|
||||
if not await self.hass.async_add_executor_job(os.path.isdir, download_path):
|
||||
_LOGGER.error(
|
||||
"Download path %s does not exist. File Downloader not active",
|
||||
download_path,
|
||||
|
Reference in New Issue
Block a user