diff --git a/hassio/hardware.py b/hassio/hardware.py index 09be04acc..ef296dd4e 100644 --- a/hassio/hardware.py +++ b/hassio/hardware.py @@ -20,6 +20,7 @@ PROC_STAT = Path("/proc/stat") RE_BOOT_TIME = re.compile(r"btime (\d+)") GPIO_DEVICES = Path("/sys/class/gpio") +RE_TTY = re.compile(r"tty[A-Z]+") class Hardware(object): @@ -34,7 +35,7 @@ class Hardware(object): """Return all serial and connected devices.""" dev_list = set() for device in self.context.list_devices(subsystem='tty'): - if 'ID_VENDOR' in device: + if 'ID_VENDOR' in device or RE_TTY.match(device.device_node): dev_list.add(device.device_node) return dev_list