The current code uses a regular expression to get the drives in the system. This can lead to finding unsupported smartctl drives like USB/Virtual drives. So instead, a better way is to use the smartctl scan functionality that will only fetch the drives which are compatible.
Removed variable TYPES since it is no longer used
Removed the if statement, because
TYPES are no longer used
DEVICES is now a dictionary containing
device name and its type
The current code uses a regular expression to get the drives in the system. This can lead to finding unsupported smartctl drives like USB/Virtual drives. So instead, a better way is to use the smartctl
scan
functionality that will only fetch the drives which are compatible.Removed variable TYPES since it is no longer used
Removed the if statement, because
Removed unused codes