ShineBridge v1.10.2 — Diagnose: Env-Var-Dump wenn SUPERVISOR_TOKEN fehlt

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
retr0
2026-08-25 16:22:34 +02:00
co-authored by Claude Sonnet 5
parent 1b78857b3d
commit 1c787349e3
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -38,6 +38,9 @@ class HAEntityReader:
def __init__(self, entity_prefix: str):
self.entity_prefix = entity_prefix
self.token = os.environ.get("SUPERVISOR_TOKEN", "")
if not self.token:
related = [k for k in os.environ if "TOKEN" in k.upper() or "SUPERVISOR" in k.upper() or "HASSIO" in k.upper()]
log.warning("[HA-Entity] SUPERVISOR_TOKEN nicht gesetzt. Verwandte Env-Vars gefunden: %s", related or "keine")
def read(self, inverter=None) -> Optional[Dict[str, float]]:
if not self.entity_prefix: