do not force supervised settings in case env var is set and config is there

This commit is contained in:
joBr99
2023-11-24 15:27:10 +01:00
parent e0294195b9
commit fce9265b5d
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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