"""Returns device and its components"""

Don't add those spaces at the ends.