diff --git a/www/i18n/en.json b/www/i18n/en.json index c64b203b..07fa1fe7 100644 --- a/www/i18n/en.json +++ b/www/i18n/en.json @@ -1269,5 +1269,5 @@ "select_ha_intro": "Select Home Assistant", "edt_dev_spec_constantBrightness_title": "Constant brightness", "edt_conf_reorder_displays_title": "Reorder displays", - "edt_conf_reorder_displays_expl": "Manipulate the order (permutations) of the displays until you get the correct one in multi-display mode" + "edt_conf_reorder_displays_expl": "Manipulate the order (permutations) of the displays until you get the correct one in multi-monitor mode" } diff --git a/www/js/wizard.js b/www/js/wizard.js index 0aed024f..5d00cb3a 100644 --- a/www/js/wizard.js +++ b/www/js/wizard.js @@ -2577,7 +2577,7 @@ function identify_ha_device(host, token, id) function createHaLedConfig(haConfig) { var lightOptions = [ - "top", "topleft", "topright", + "disabled", "top", "topleft", "topright", "bottom", "bottomleft", "bottomright", "left", "lefttop", "leftmiddle", "leftbottom", "right", "righttop", "rightmiddle", "rightbottom", @@ -2606,8 +2606,14 @@ function createHaLedConfig(haConfig) var idx_content = assignLightPos(key, defaultPosition, _haConfig.lamps[key].name); _haConfig.lamps[key].defaultPosition = defaultPosition; - ledDef.push(JSON.parse(JSON.stringify(idx_content))); + if (defaultPosition != "disabled") + { + ledDef.push(JSON.parse(JSON.stringify(idx_content))); + } } + + _haConfig.lamps = _haConfig.lamps.filter(item => item.defaultPosition != "disabled"); + window.serverConfig.leds = ledDef; requestWriteConfig({ "leds": window.serverConfig.leds }); window.serverConfig.device = _haConfig;