def device(self, name):
for device in self.devices():<EOL><INDENT>if device.name.lower() == name.lower():<EOL><INDENT>return device<EOL><DEDENT><DEDENT>raise NotFound('<STR_LIT>' % name)<EOL>
Returns the :class:`~plexapi.myplex.MyPlexDevice` that matches the name specified.

            Parameters:
                name (str): Name to match against.