👕 Fix lint issue

This commit is contained in:
Jan Oberhauser
2020-10-22 15:46:03 +02:00
parent 5b7efd67ca
commit 40c2acd77b
491 changed files with 4045 additions and 3936 deletions

View File

@@ -20,7 +20,7 @@ export async function philipsHueApiRequest(this: IExecuteFunctions | ILoadOption
body,
qs,
uri: uri || `https://api.meethue.com${resource}`,
json: true
json: true,
};
try {
if (Object.keys(headers).length !== 0) {

View File

@@ -34,11 +34,11 @@ export const lightOperations = [
name: 'Update',
value: 'update',
description: 'Update an light',
}
},
],
default: 'update',
description: 'The operation to perform.'
}
description: 'The operation to perform.',
},
] as INodeProperties[];
export const lightFields = [

View File

@@ -75,19 +75,19 @@ export class PhilipsHue implements INodeType {
const lights = await philipsHueApiRequest.call(
this,
'GET',
`/bridge/${user}/lights`,
`/bridge/${user}/lights`
);
for (const light of Object.keys(lights)) {
const lightName = lights[light].name;
const lightId = light;
returnData.push({
name: lightName,
value: lightId
value: lightId,
});
}
return returnData;
},
}
},
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
@@ -132,7 +132,7 @@ export class PhilipsHue implements INodeType {
this,
'PUT',
`/bridge/${user}/lights/${lightId}/state`,
body,
body
);
responseData = {};