Fix AI Assistant visibility when API key is set via environment variables (#1037)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
This commit is contained in:
Copilot
2026-01-27 13:09:05 +01:00
committed by GitHub
parent e8bcb7c7dc
commit c1ab90abe9

View File

@@ -166,10 +166,10 @@ Help users understand their MQTT data, troubleshoot issues, optimize their autom
} }
/** /**
* Check if API key is configured * Check if API key is configured (from localStorage or environment)
*/ */
public hasApiKey(): boolean { public hasApiKey(): boolean {
return !!this.getApiKeyFromStorage() return !!(this.getApiKeyFromStorage() || this.getApiKeyFromEnv())
} }
/** /**