mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-23 17:16:33 +00:00
Fix wrong list (#119)
This commit is contained in:
parent
857f346b35
commit
630137a576
@ -48,7 +48,7 @@ class Hardware(object):
|
||||
"""Return all disk devices."""
|
||||
dev_list = set()
|
||||
for device in self.context.list_devices(subsystem='block'):
|
||||
if 'ID_VENDOR' in device:
|
||||
if device.device_node.startswith('/dev/sd'):
|
||||
dev_list.add(device.device_node)
|
||||
|
||||
return list(dev_list)
|
||||
|
Loading…
x
Reference in New Issue
Block a user