Fix OPENCLAW_CONFIG_PATH env + bump add-on to 0.5.2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: OpenClaw Assistant
|
||||
version: "0.5.1"
|
||||
version: "0.5.2"
|
||||
slug: openclaw_assistant
|
||||
description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on.
|
||||
url: https://github.com/techartdev/OpenClawHomeAssistant
|
||||
|
||||
@@ -123,13 +123,14 @@ fi
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
OPENCLAW_CONFIG_PATH="/config/.openclaw/openclaw.json"
|
||||
export OPENCLAW_CONFIG_PATH
|
||||
|
||||
python3 - <<'PY'
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
cfg_path = Path(os.environ['OPENCLAW_CONFIG_PATH'])
|
||||
cfg_path = Path(os.environ.get('OPENCLAW_CONFIG_PATH', '/config/.openclaw/openclaw.json'))
|
||||
|
||||
def set_path(d, keys, value):
|
||||
cur = d
|
||||
|
||||
Reference in New Issue
Block a user