Access USB device in addon

How do I access a USB device in an addon (from python)?

  1. serial.tools.list_ports.comports() lists the device (so it’s visible in the addon)
  2. with Serial(port, baud) as dev: throws PermissionError: [Errno 1] Operation not permitted: '/dev/ttyUSB0'
  3. I’ve specified a “soup” of options, including some I really do not want:
  log_level: debug
  homeassistant_api: true
  usb: true
  uart: true
  # how access usb without this?
  devices:
    - "/dev/USB0"
  full_access: true
1 Like