fix: trim inputs

This commit is contained in:
Maxi Quoß
2025-03-12 14:05:47 +01:00
parent f13e1270c1
commit 7b8947656a

View File

@@ -49,6 +49,10 @@
device.ip = device.ip.replaceAll(' ', '');
device.mac = device.mac.replaceAll(' ', '');
device.netmask = device.netmask.replaceAll(' ', '');
device.wake_cmd = device.wake_cmd.trim();
device.shutdown_cmd = device.wake_cmd.trim();
device.wake_cron = device.wake_cron.trim();
device.shutdown_cron = device.shutdown_cron.trim();
device.ports = portIds;
if (device.id) {
updateDevice(device);