Update hardware.py (#1516)

Allow to pass video* devices to containers. Should allow to use usb webcams / uvc tuners.
This commit is contained in:
zewelor 2020-02-19 09:08:11 +01:00 committed by GitHub
parent 39baea759a
commit 3b3840c087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ GPIO_DEVICES: Path = Path("/sys/class/gpio")
SOC_DEVICES: Path = Path("/sys/devices/platform/soc")
RE_TTY: re.Pattern = re.compile(r"tty[A-Z]+")
RE_VIDEO_DEVICES = re.compile(r"^(?:vchiq|cec)")
RE_VIDEO_DEVICES = re.compile(r"^(?:vchiq|cec|video\d+)")
@attr.s(frozen=True)