python-validity/validitysensor/firmware_tables.py
Arvid Norlander 1078c3873f
Consolidate definitions related to firmware files.
This fixes the TODO comments in validity-sensors-firmware
2020-08-07 12:58:01 +02:00

24 lines
876 B
Python

"""Defines various constants for firmware files"""
from .usb import SupportedDevices
FIRMWARE_URIS = {
SupportedDevices.DEV_90: {
'driver': 'https://download.lenovo.com/pccbbs/mobiles/n1cgn08w.exe',
'referral': 'https://support.lenovo.com/us/en/downloads/DS120491',
},
SupportedDevices.DEV_97: {
'driver': 'https://download.lenovo.com/pccbbs/mobiles/nz3gf07w.exe',
'referral': 'https://download.lenovo.com/pccbbs/mobiles/nz3gf07w.exe'
},
SupportedDevices.DEV_9a: {
'driver': 'https://download.lenovo.com/pccbbs/mobiles/nz3gf07w.exe',
'referral': 'https://download.lenovo.com/pccbbs/mobiles/nz3gf07w.exe'
}
}
FIRMWARE_NAMES = {
SupportedDevices.DEV_90: '6_07f_Lenovo.xpfwext',
SupportedDevices.DEV_97: '6_07f_lenovo_mis_qm.xpfwext',
SupportedDevices.DEV_9a: '6_07f_lenovo_mis_qm.xpfwext'
}