mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 18:18:21 +00:00
Avoid blocking IO in downloader config flow (#114741)
This commit is contained in:
parent
7a2f6ce430
commit
35ff633d99
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user