1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Addon provide his own udev support (#1206)

* Addon provide his own udev support

* upgrade logger
This commit is contained in:
Pascal Vizeli
2019-08-14 12:29:00 +02:00
committed by GitHub
parent 41ce9913d2
commit 0a0a62f238
8 changed files with 80 additions and 49 deletions

View File

@@ -135,7 +135,14 @@ class DockerAddon(DockerInterface):
# Auto mapping UART devices
if self.addon.auto_uart:
for device in self.sys_hardware.serial_devices:
if self.addon.with_udev:
serial_devs = self.sys_hardware.serial_devices
else:
serial_devs = (
self.sys_hardware.serial_devices | self.sys_hardware.serial_by_id
)
for device in serial_devs:
devices.append(f"{device}:{device}:rwm")
# Return None if no devices is present