Include serial device node links in container device mapping to allow for persistent names in the HA serial config (#944)

This commit is contained in:
cadwal 2019-03-18 09:05:04 +01:00 committed by Pascal Vizeli
parent 3335bad9e1
commit ec19bd570b

View File

@ -38,6 +38,7 @@ class Hardware:
for device in self.context.list_devices(subsystem='tty'):
if 'ID_VENDOR' in device or RE_TTY.search(device.device_node):
dev_list.add(device.device_node)
dev_list.extend(device.device_links)
return dev_list