Fix local dir config path
This commit is contained in:
parent
0f777ecd4c
commit
f93d6a1a11
1 changed files with 1 additions and 3 deletions
|
@ -109,8 +109,6 @@ def _handle_get_local(handler, path_match, data):
|
|||
"""
|
||||
req_file = util.sanitize_path(path_match.group('file'))
|
||||
|
||||
path = os.path.join(get_default_config_dir(), 'www', req_file)
|
||||
if not os.path.isfile(path):
|
||||
return False
|
||||
path = handler.server.hass.config.path('www', req_file)
|
||||
|
||||
handler.write_file(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue