load default port on manually added devices

This commit is contained in:
sparks-alec
2022-12-11 04:30:02 -05:00
parent 6f690bb48c
commit 419bf52ebb
+4
View File
@@ -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;
}