From 419bf52ebbc1e35f82fbe9d3a6ea568a967a7fa0 Mon Sep 17 00:00:00 2001 From: sparks-alec Date: Sun, 11 Dec 2022 04:30:02 -0500 Subject: [PATCH] load default port on manually added devices --- src/device.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/device.js b/src/device.js index 6d9dcb6..8010114 100644 --- a/src/device.js +++ b/src/device.js @@ -86,6 +86,10 @@ function initDeviceConnection(id) { infoUpdate(device, 'status', 'new'); + if(device.port === undefined){ + device.port = device.plugin.config.defaultPort; + } + if (device.port === undefined || device.addresses.length === 0) { return true; }