mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
Update hardware.py (#1516)
Allow to pass video* devices to containers. Should allow to use usb webcams / uvc tuners.
This commit is contained in:
parent
39baea759a
commit
3b3840c087
@ -28,7 +28,7 @@ GPIO_DEVICES: Path = Path("/sys/class/gpio")
|
|||||||
SOC_DEVICES: Path = Path("/sys/devices/platform/soc")
|
SOC_DEVICES: Path = Path("/sys/devices/platform/soc")
|
||||||
RE_TTY: re.Pattern = re.compile(r"tty[A-Z]+")
|
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)
|
@attr.s(frozen=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user