mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix some LGTM warnings (#949)
This commit is contained in:
@@ -270,7 +270,7 @@ $(document).ready( function() {
|
||||
});
|
||||
|
||||
$('#btn_submit_v4l2').off().on('click',function() {
|
||||
var v4l2Options = conf_editor_v4l2.getValue()
|
||||
var v4l2Options = conf_editor_v4l2.getValue();
|
||||
|
||||
if (v4l2Options.grabberV4L2.available_devices != 'custom' && v4l2Options.grabberV4L2.available_devices != 'auto')
|
||||
v4l2Options.grabberV4L2.device = v4l2Options.grabberV4L2.available_devices;
|
||||
|
@@ -198,7 +198,7 @@ function initLanguageSelection()
|
||||
var langText = 'Please Select';
|
||||
|
||||
//Test, if language is supported by hyperion
|
||||
langIdx = availLang.indexOf(langLocale)
|
||||
var langIdx = availLang.indexOf(langLocale);
|
||||
if ( langIdx > -1 )
|
||||
{
|
||||
langText = availLangText[langIdx];
|
||||
|
@@ -762,7 +762,7 @@ async function discover_hue_bridges(){
|
||||
// TODO: error case unhandled
|
||||
// res can be: false (timeout) or res.error (not found)
|
||||
if(res && !res.error){
|
||||
const r = res.info
|
||||
const r = res.info;
|
||||
|
||||
// Process devices returned by discovery
|
||||
console.log(r);
|
||||
@@ -1462,7 +1462,7 @@ async function discover_yeelight_lights(){
|
||||
// TODO: error case unhandled
|
||||
// res can be: false (timeout) or res.error (not found)
|
||||
if(res && !res.error){
|
||||
const r = res.info
|
||||
const r = res.info;
|
||||
|
||||
// Process devices returned by discovery
|
||||
for(const device of r.devices)
|
||||
@@ -1554,7 +1554,7 @@ function assign_yeelight_lights(){
|
||||
|
||||
if (! models.includes (lights[lightid].model) )
|
||||
{
|
||||
var enabled = 'disabled'
|
||||
var enabled = 'disabled';
|
||||
options = '<option value=disabled>'+$.i18n('wiz_yeelight_unsupported')+'</option>';
|
||||
}
|
||||
|
||||
@@ -1611,7 +1611,7 @@ function identify_yeelight_device(hostname, port){
|
||||
// TODO: error case unhandled
|
||||
// res can be: false (timeout) or res.error (not found)
|
||||
if(res && !res.error){
|
||||
const r = res.info
|
||||
//const r = res.info;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user