mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-16 09:56:58 +01:00
do not force supervised settings in case env var is set and config is there
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
|
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
|
||||||
name: NSPanel Lovelace UI Addon
|
name: NSPanel Lovelace UI Addon
|
||||||
version: "4.7.32"
|
version: "4.7.33"
|
||||||
slug: nspanel-lovelace-ui
|
slug: nspanel-lovelace-ui
|
||||||
description: NSPanel Lovelace UI Addon
|
description: NSPanel Lovelace UI Addon
|
||||||
services:
|
services:
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ def get_config(file):
|
|||||||
|
|
||||||
if not settings.get("home_assistant_token"):
|
if not settings.get("home_assistant_token"):
|
||||||
st = os.getenv('SUPERVISOR_TOKEN')
|
st = os.getenv('SUPERVISOR_TOKEN')
|
||||||
if st is not None:
|
if st and "home_assistant_token" not in settings and "home_assistant_address" not in settings:
|
||||||
settings["home_assistant_token"] = st
|
settings["home_assistant_token"] = st
|
||||||
settings["home_assistant_address"] = "http://supervisor"
|
settings["home_assistant_address"] = "http://supervisor"
|
||||||
settings["is_addon"] = True
|
settings["is_addon"] = True
|
||||||
|
|||||||
Reference in New Issue
Block a user