From 7c8373d2c751c7f28a69d98ff29d066757b1e588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Hagelb=C3=A4ck?= Date: Wed, 7 Apr 2021 10:26:33 +0200 Subject: [PATCH] Update mqtt package to v4 - Minor updates to other packages - Relates to #181 --- plejd/PlejdApi.js | 5 +---- plejd/PlejdBLEHandler.js | 8 ++++++-- plejd/package.json | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/plejd/PlejdApi.js b/plejd/PlejdApi.js index 2a3cc9b..fcc6029 100644 --- a/plejd/PlejdApi.js +++ b/plejd/PlejdApi.js @@ -333,10 +333,7 @@ class PlejdApi { `Device ${device.title} (${device.deviceId}) has no load configured and will be excluded`, ); } else { - const uniqueOutputId = this.deviceRegistry.getUniqueOutputId( - device.deviceId, - deviceOutput, - ); + const uniqueOutputId = this.deviceRegistry.getUniqueOutputId(device.deviceId, deviceOutput); const plejdDevice = this.siteDetails.plejdDevices.find( (x) => x.deviceId === device.deviceId, diff --git a/plejd/PlejdBLEHandler.js b/plejd/PlejdBLEHandler.js index 638c94e..75eeaf0 100644 --- a/plejd/PlejdBLEHandler.js +++ b/plejd/PlejdBLEHandler.js @@ -850,11 +850,15 @@ class PlejBLEHandler extends EventEmitter { const scene = this.deviceRegistry.getSceneByBleAddress(sceneBleAddress); if (!scene) { - logger.warn(`Scene with BLE address ${sceneBleAddress} could not be found, can't process message`); + logger.warn( + `Scene with BLE address ${sceneBleAddress} could not be found, can't process message`, + ); return; } - logger.debug(`${scene.name} (${sceneBleAddress}) scene triggered (device id ${outputUniqueId}).`); + logger.debug( + `${scene.name} (${sceneBleAddress}) scene triggered (device id ${outputUniqueId}).`, + ); command = COMMANDS.TRIGGER_SCENE; data = { sceneId: scene.uniqueId }; diff --git a/plejd/package.json b/plejd/package.json index 6ba45e5..c2e504a 100644 --- a/plejd/package.json +++ b/plejd/package.json @@ -3,17 +3,17 @@ "@abandonware/bluetooth-hci-socket": "~0.5.3-7", "axios": "~0.21.1", "buffer-xor": "~2.0.2", - "dbus-next": "~0.9.1", + "dbus-next": "~0.9.2", "fs": "0.0.1-security", "jspack": "~0.0.4", - "mqtt": "~3.0.0", + "mqtt": "~4.2.6", "winston": "~3.3.3" }, "devDependencies": { "babel-eslint": "~10.1.0", - "eslint": "~7.18.0", + "eslint": "~7.23.0", "eslint-config-airbnb": "~18.2.1", - "eslint-config-prettier": "~7.2.0", + "eslint-config-prettier": "~8.1.0", "eslint-plugin-import": "~2.22.1", "eslint-plugin-prettier": "~3.3.1", "prettier": "~2.2.1"