Fix downloader path validation on subdir (#46061)

This commit is contained in:
Steven Rollason
2021-02-06 13:05:50 +00:00
committed by Paulus Schoutsen
parent 88485d384c
commit 285fd3d43c

View File

@@ -70,8 +70,9 @@ def setup(hass, config):
overwrite = service.data.get(ATTR_OVERWRITE)
# Check the path
raise_if_invalid_path(subdir)
if subdir:
# Check the path
raise_if_invalid_path(subdir)
final_path = None