mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Fix local dir config path
This commit is contained in:
parent
0f777ecd4c
commit
f93d6a1a11
@ -109,8 +109,6 @@ def _handle_get_local(handler, path_match, data):
|
|||||||
"""
|
"""
|
||||||
req_file = util.sanitize_path(path_match.group('file'))
|
req_file = util.sanitize_path(path_match.group('file'))
|
||||||
|
|
||||||
path = os.path.join(get_default_config_dir(), 'www', req_file)
|
path = handler.server.hass.config.path('www', req_file)
|
||||||
if not os.path.isfile(path):
|
|
||||||
return False
|
|
||||||
|
|
||||||
handler.write_file(path)
|
handler.write_file(path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user