Skip to content

Commit

Permalink
revert /workspaces/emhass
Browse files Browse the repository at this point in the history
  • Loading branch information
gieljnssns committed Feb 13, 2024
1 parent bbc9d83 commit bf1e210
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/emhass/web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def action_call(action_name):
DATA_PATH = os.getenv("DATA_PATH", default="/share/")
else:
if use_options:
OPTIONS_PATH = os.getenv('OPTIONS_PATH', default="/workspaces/emhass/app/options.json")
OPTIONS_PATH = os.getenv('OPTIONS_PATH', default="/app/options.json")
options_json = Path(OPTIONS_PATH)
# Read options info
if options_json.exists():
Expand All @@ -163,8 +163,8 @@ def action_call(action_name):
app.logger.error("options.json does not exists")
else:
options = None
CONFIG_PATH = os.getenv("CONFIG_PATH", default="/workspaces/emhass/app/config_emhass.yaml")
DATA_PATH = os.getenv("DATA_PATH", default="/workspaces/emhass/app/data/")
CONFIG_PATH = os.getenv("CONFIG_PATH", default="/app/config_emhass.yaml")
DATA_PATH = os.getenv("DATA_PATH", default="/app/data/")

config_path = Path(CONFIG_PATH)
data_path = Path(DATA_PATH)
Expand Down Expand Up @@ -254,7 +254,7 @@ def action_call(action_name):
else: #If addon is false
costfun = os.getenv('LOCAL_COSTFUN', default='profit')
logging_level = os.getenv('LOGGING_LEVEL', default='INFO')
with open(os.getenv('SECRETS_PATH', default='/workspaces/emhass/app/secrets_emhass.yaml'), 'r') as file:
with open(os.getenv('SECRETS_PATH', default='/app/secrets_emhass.yaml'), 'r') as file:
params_secrets = yaml.load(file, Loader=yaml.FullLoader)
hass_url = params_secrets['hass_url']

Expand Down

0 comments on commit bf1e210

Please sign in to comment.