-
-
Notifications
You must be signed in to change notification settings - Fork 193
1.11 #2393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.11 #2393
Conversation
This reverts commit 3b0264e.
* (asgothian) Fix Pairing * (asgothian) change ping * (asgothian) delay map generation until refresh is activated * (asgothian) remove bindings tab from zigbee tab * (asgothian) reorder tabs in configuration * (asgothian) remove binding tab from configuration * (asgothian) remove map from configuration * (asgothian) add debug to zigbee tab (work in progress)
Allow use of legacy device definition through exposes functionality
Allow for configure to be an array of promises.
@@ -3,7 +3,7 @@ | |||
const states = require('./states.js').states; | |||
const utils = require('./utils.js'); | |||
const rgb = require('./rgb.js'); | |||
const applyExposes = require('./exposes.js').applyExposes; | |||
const {applyExposes, applyExposeForDevice} = require('./exposes.js'); |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
const colors = require('./colors.js'); | ||
const ea = require('zigbee-herdsman-converters/lib/exposes.js').access; | ||
const statesDefs = require('./states').states; | ||
const rgb = require('./rgb'); |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
const releaseActionName = actionName.replace('hold', 'release'); | ||
const releaseActionName2 = actionName.concat('_release'); | ||
const release = phr[actionName]; | ||
if (release === 'IGNORE') continue // a release message for which a press or hold exists. |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
@@ -155,7 +156,7 @@ | |||
}; | |||
|
|||
const from_ = await this.readSoftwareBuildIDAndDateCode(device.device, false); | |||
const fileVersion = await device.mapped.ota.updateToLatest(device.device, onProgress); | |||
const fileVersion = await zhc_ota.update(device.device, device.mapped.ota, false, onProgress) |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
@@ -155,7 +156,7 @@ | |||
}; | |||
|
|||
const from_ = await this.readSoftwareBuildIDAndDateCode(device.device, false); | |||
const fileVersion = await device.mapped.ota.updateToLatest(device.device, onProgress); | |||
const fileVersion = await zhc_ota.update(device.device, device.mapped.ota, false, onProgress) |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
await this.addLegacyDevice(model); | ||
} | ||
else { | ||
const pre = statesMapping.devices.length; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
else { | ||
const pre = statesMapping.devices.length; | ||
await statesMapping.addExposeToDevices(device, this, model); | ||
const post = statesMapping.devices.length; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
extPanIDDebug += extendedPanIDDebug[i]; | ||
i--; | ||
} | ||
this.warn(`Network parameters in Config : panID=${this.herdsmanLogSettings.panID} channel=${this.herdsmanLogSettings.channel} extendedPanID=${this.herdsmanLogSettings.extendedPanID}`) |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
this.warn(`Network parameters on Coordinator: panID=${debNetworkParam.panID} channel=${debNetworkParam.channel} extendedPanID=${extPanIDDebug}`); | ||
} | ||
catch (error) { | ||
this.warn(`Unable to obtain herdsman settings`) |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
the enclosing function
} | ||
modifiedCode = modifiedCode.replace(/export .+;/gm, ''); | ||
|
||
fs.writeFileSync(mN+'.tmp', modifiedCode) |
Check notice
Code scanning / CodeQL
Semicolon insertion Note
No description provided.