mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
committed by
Pascal Vizeli
parent
17ba813a6d
commit
ff83efe376
@@ -1064,7 +1064,7 @@ class Config(object):
|
||||
"""Check if the path is valid for access from outside."""
|
||||
assert path is not None
|
||||
|
||||
parent = pathlib.Path(path).parent
|
||||
parent = pathlib.Path(path)
|
||||
try:
|
||||
parent = parent.resolve() # pylint: disable=no-member
|
||||
except (FileNotFoundError, RuntimeError, PermissionError):
|
||||
|
||||
Reference in New Issue
Block a user