mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
move config file
This commit is contained in:
@@ -15,9 +15,9 @@ arch:
|
||||
- i386
|
||||
init: false
|
||||
map:
|
||||
- share:rw
|
||||
- addon_config:rw
|
||||
options:
|
||||
message: "Hello world..."
|
||||
schema:
|
||||
message: "str?"
|
||||
image: "ghcr.io/jobr99/{arch}-nspanel-lovelace-ui"
|
||||
#image: "ghcr.io/jobr99/{arch}-nspanel-lovelace-ui"
|
||||
|
||||
@@ -64,7 +64,7 @@ def on_message(client, userdata, msg):
|
||||
def get_config_file():
|
||||
CONFIG_FILE = os.getenv('CONFIG_FILE')
|
||||
if not CONFIG_FILE:
|
||||
CONFIG_FILE = './config.yml'
|
||||
CONFIG_FILE = './panels.yaml'
|
||||
return CONFIG_FILE
|
||||
|
||||
def get_config(file):
|
||||
|
||||
@@ -43,7 +43,7 @@ class Entity:
|
||||
page_search_res = self.panel.searchCard(
|
||||
self.entity_id.split(".")[1])
|
||||
if page_search_res is not None:
|
||||
if name is "":
|
||||
if name == "":
|
||||
name = page_search_res.title
|
||||
value = get_translation(
|
||||
self.locale, "frontend.ui.card.button.press")
|
||||
|
||||
@@ -8,10 +8,10 @@ if [ -z ${STANDALONE+x} ]; then
|
||||
else
|
||||
echo "RUNNING IN STANDALONE MODE"
|
||||
fi
|
||||
export CONFIG_FILE=/share/config.yml
|
||||
export CONFIG_FILE=/config/panels.yaml
|
||||
if test -f "$CONFIG_FILE"; then
|
||||
echo "$CONFIG_FILE exists."
|
||||
else
|
||||
cp /usr/bin/mqtt-manager/config.yml.example $CONFIG_FILE
|
||||
cp /usr/bin/mqtt-manager/panels.yaml.example $CONFIG_FILE
|
||||
fi
|
||||
python /usr/bin/mqtt-manager/main.py
|
||||
Reference in New Issue
Block a user