Devices in config.json


I’m playing around with a custom add-on, that uses an usb device.

in the config.json I have a devices entry:

  "devices": ["/dev/sda1:/dev/sda1:rwm"],

This works fine, but when rebooting the system, the supervisor log contains the following warning:

WARNING (MainThread) [supervisor.addons.validate] Add-on config 'devices' use a deprecated format, the new format uses a list of paths only.

What is the correct way of writing this entry in the config.json?

1 Like