Skip to content

Commit

Permalink
Linter Fix: Export
Browse files Browse the repository at this point in the history
  • Loading branch information
cornelius-koepp committed Nov 13, 2024
1 parent 57bee12 commit b8b62fa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/ConfigTransfer.script.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function uctBtnExport(device, online, progress, context) {
} catch (e) {
Log.error("OpenKNX ConfigTransfer: Handle Channel Export [ERROR]");
uctErrorMapper(device, progress, context.p_messageOutput, e);
}
}
}

function _uctBtnExport(device, online, progress, context) {
Expand All @@ -102,7 +102,7 @@ function _uctBtnExport(device, online, progress, context) {
if (moduleSelection < uctModuleOrder.length) {
var module = uctModuleOrder[moduleSelection];
var moduleChannelCount = uctChannelParams[module].channels;

var channelMode = device.getParameterByName(context.p_channelMode).value;
var channels = [0];
if (moduleChannelCount > 0) {
Expand All @@ -120,18 +120,18 @@ function _uctBtnExport(device, online, progress, context) {
if (channels.length > 1) {
Log.info("OpenKNX ConfigTransfer: Multi-Channel " + channels.join(","));
}

var includeSelection = device.getParameterByName(context.p_exportParamSelectionSelection).value;
var includeHidden = (includeSelection == 1);
var includeDefault = (includeSelection == 2);

var exportFormatSelection = device.getParameterByName(context.p_exportFormatSelection).value;
var exportFormat = (exportFormatSelection==3) ? "" : "name";
// multi-channel export is restricted to single line
var multiLine = (exportFormatSelection == 1) && (channelMode == 0);

// TODO add p_messageOutput again?

var param_exportOutput = device.getParameterByName(context.p_exportOutput);
var channelExportResult = [];
for (var i = 0; i < channels.length; i++) {
Expand Down Expand Up @@ -171,7 +171,7 @@ function _uctBtnExport(device, online, progress, context) {
}
var progressPos = 0;
var progressChPos = 0;

var param_exportOutput = device.getParameterByName(context.p_exportOutput);
var channelExportResult = [];
var wasCanceled = false;
Expand Down Expand Up @@ -225,7 +225,7 @@ function uctBtnCopy(device, online, progress, context) {
} catch (e) {
Log.error("OpenKNX ConfigTransfer: Handle Channel Copy [ERROR]");
uctErrorMapper(device, progress, context.p_messageOutput, e);
}
}
}

function _uctBtnCopy(device, online, progress, context) {
Expand Down Expand Up @@ -323,7 +323,7 @@ function uctBtnReset(device, online, progress, context) {
} catch (e) {
Log.error("OpenKNX ConfigTransfer: Handle Channel Reset [ERROR]");
uctErrorMapper(device, progress, context.p_messageOutput, e);
}
}
}

function _uctBtnReset(device, online, progress, context) {
Expand Down

0 comments on commit b8b62fa

Please sign in to comment.