Raise error when device is not defined in configuration file