mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-19 22:57:08 +01:00
Fix sort fields in OTA manager
This commit is contained in:
@@ -60,6 +60,11 @@ def on_service_state_change(zeroconf, service_type, name, state_change):
|
||||
for key, item in info.properties.items():
|
||||
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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user