auto-pi-lot / autopilot

Distributed behavioral experiments
https://docs.auto-pi-lot.com
Mozilla Public License 2.0
93 stars 24 forks source link

'group' not correctly applied from setup for hardware objects #153

Open sneakers-the-rat opened 2 years ago

sneakers-the-rat commented 2 years ago

Setup asks for a 'group' to put the hardware objects in, but doesn't respect it when saving in prefs.json

eg. a task asks for

HARDWARE = {
    'LEDS' : {
        'MYLED': {...}
    }
}

So during setup you set group = LEDS and name = MYLED but it will be saved in prefs as

{
"HARDWARE": {
    {
        "GPIO": {"MYLED": {...}}
    }
}}