mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-24 00:14:26 +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
|
||||
name: NSPanel Lovelace UI Addon
|
||||
version: "4.7.32"
|
||||
version: "4.7.33"
|
||||
slug: nspanel-lovelace-ui
|
||||
description: NSPanel Lovelace UI Addon
|
||||
services:
|
||||
|
||||
@@ -100,7 +100,7 @@ def get_config(file):
|
||||
|
||||
if not settings.get("home_assistant_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_address"] = "http://supervisor"
|
||||
settings["is_addon"] = True
|
||||
|
||||
Reference in New Issue
Block a user