From 38a13d5edc7041b533aaa256edb286e8144fe356 Mon Sep 17 00:00:00 2001 From: LordGrey <48840279+Lord-Grey@users.noreply.github.com> Date: Mon, 4 Sep 2023 22:27:24 +0200 Subject: [PATCH] Only getProperties, if username is available --- assets/webconfig/js/wizard.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/webconfig/js/wizard.js b/assets/webconfig/js/wizard.js index eb1e24be..6312b97c 100755 --- a/assets/webconfig/js/wizard.js +++ b/assets/webconfig/js/wizard.js @@ -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);