mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Check for relative path
This commit is contained in:
parent
96181a555a
commit
52193611cd
@ -42,6 +42,10 @@ def setup(hass, config):
|
|||||||
|
|
||||||
download_path = config[DOMAIN][CONF_DOWNLOAD_DIR]
|
download_path = config[DOMAIN][CONF_DOWNLOAD_DIR]
|
||||||
|
|
||||||
|
# If path is relative, we assume relative to HASS config dir
|
||||||
|
if not os.path.isabs(download_path):
|
||||||
|
download_path = hass.config.path(download_path)
|
||||||
|
|
||||||
if not os.path.isdir(download_path):
|
if not os.path.isdir(download_path):
|
||||||
|
|
||||||
logger.error(
|
logger.error(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user