# List of available relays
relays = [
    {
        "id": 1,
        "gpio": 20,
        "name": "relay 1"
    },
    {
        "id": 2,
        "gpio": 21,
        "name": "relay 2"
    }
]

# List of available relays
relays = {
    "relay_1": {
        "gpio": 20,
        "NC": False
    },
    "relay_2": {
        "gpio": 21,
        "NC": False
    }
}

Modify commit 952438d97fc0c96afaf505469cc7b9cb0c9f287d