PepperDash / epi-snapone-wattbox

Plugin for Wattbox PDUs
0 stars 0 forks source link

[BUG]-using an array outlets in config results in an error and doesnt build device. #16

Open hunterwbrock opened 1 year ago

hunterwbrock commented 1 year ago

Describe the bug Using an array outlets in config results in an error and doesn't build device.

{
          "key": "WattboxPdu-1",
          "name": "PDU-01",
          "type": "wattBox",
          "group": "generic",
          "properties": {
            "authType": "basic",
            "control": {
              "method": "http",
              "tcpSshProperties": {
                "address": "192.168.0.81",
                "port": 80,
                "username": "admin",
                "password": "wattbox"
              }
            },
            "outlets": [{
              "key": "Outlet-1",
              "enabled": true,
              "outletNumber": 1,
              "name": "DIS-01"
            },
            {
              "key": "Outlet-2",
              "enabled": true,
              "outletNumber": 2,
              "name": "DGE-01"
            },
            {
              "key": "Outlet-3",
              "enabled": true,
              "outletNumber": 3,
              "name": "WSG-01"
            }
          ]

          }
        },