Fix some LGTM warnings (#949)

This commit is contained in:
Murat Seker
2020-08-08 12:59:40 +02:00
committed by GitHub
parent 1df0e9ce17
commit 5758b19cbc
7 changed files with 14 additions and 14 deletions

View File

@@ -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;
}
}