Browse Source

Fix sort fields in OTA manager

ech1560
Xose Pérez 6 years ago
parent
commit
1359157bce
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      code/ota.py

+ 5
- 0
code/ota.py View File

@ -60,6 +60,11 @@ def on_service_state_change(zeroconf, service_type, name, state_change):
for key, item in info.properties.items(): for key, item in info.properties.items():
device[key.decode('UTF-8')] = item.decode('UTF-8'); device[key.decode('UTF-8')] = item.decode('UTF-8');
# rename fields (needed for sorting by name)
device['app'] = device['app_name']
device['device'] = device['target_board']
device['version'] = device['app_version']
devices.append(device) devices.append(device)


Loading…
Cancel
Save