Only getProperties, if username is available

This commit is contained in:
LordGrey 2023-09-04 22:27:24 +02:00
parent 00085410f3
commit 38a13d5edc
1 changed files with 3 additions and 1 deletions

View File

@ -795,7 +795,9 @@ function checkHueBridge(cb, hueUser) {
var host = hueIPs[hueIPsinc].host;
var port = hueIPs[hueIPsinc].port;
getProperties_hue_bridge(cb, decodeURIComponent(host), port, usr);
if (usr != '') {
getProperties_hue_bridge(cb, decodeURIComponent(host), port, usr);
}
if (isAPIv2Ready) {
$('#port').val(443);