Remove web UI presentation option

This commit is contained in:
Yegor Vialov
2020-02-17 13:50:24 +00:00
parent 6e448d3458
commit 959e89de2b
5 changed files with 1 additions and 99 deletions

View File

@ -15,7 +15,6 @@ class ConnectionManager {
String displayHostname;
String _webSocketAPIEndpoint;
String httpWebHost;
String httpWebHostWithExtAuth;
String _token;
String _tempToken;
String oauthUrl;
@ -52,12 +51,6 @@ class ConnectionManager {
"${prefs.getString('hassio-protocol')}://$_domain:$_port/api/websocket";
httpWebHost =
"${prefs.getString('hassio-res-protocol')}://$_domain:$_port";
httpWebHostWithExtAuth = httpWebHost;
if (httpWebHostWithExtAuth.contains("?")) {
httpWebHostWithExtAuth += "&external_auth=1";
} else {
httpWebHostWithExtAuth += "?external_auth=1";
}
if ((_domain == null) || (_port == null) ||
(_domain.isEmpty) || (_port.isEmpty)) {
completer.completeError(HAError.checkConnectionSettings());