mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-12-24 12:29:08 +00:00
Append devlinks to serial dev_list (#1131)
* append devlinks to dev_list * replace eudev-libs with eudev * include only devlinks starting with /dev/serial/by-id * add missing package, move udev init to entry.sh * fix mode on entry.sh * Update homeassistant.py * Update homeassistant.py
This commit is contained in:
@@ -39,6 +39,15 @@ class Hardware:
|
||||
if "ID_VENDOR" in device or RE_TTY.search(device.device_node):
|
||||
dev_list.add(device.device_node)
|
||||
|
||||
# Add /dev/serial/by-id devlink for current device
|
||||
if "DEVLINKS" in device and device["DEVLINKS"]:
|
||||
devlinks = [
|
||||
symlink
|
||||
for symlink in device["DEVLINKS"].split(" ")
|
||||
if symlink.startswith("/dev/serial/by-id")
|
||||
]
|
||||
dev_list.update(devlinks)
|
||||
|
||||
return dev_list
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user