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:
@@ -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 {
|
||||
return !!this.getApiKeyFromStorage()
|
||||
return !!(this.getApiKeyFromStorage() || this.getApiKeyFromEnv())
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user