From 6238fa5fd2f708d9ada7677039a3e03582f31aad Mon Sep 17 00:00:00 2001 From: Hellowlol Date: Tue, 3 Apr 2018 23:08:17 +0200 Subject: [PATCH] fix bug so device returns a object as it should. --- plexapi/myplex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexapi/myplex.py b/plexapi/myplex.py index e719c8ea..bec46876 100644 --- a/plexapi/myplex.py +++ b/plexapi/myplex.py @@ -690,7 +690,7 @@ class MyPlexDevice(PlexObject): listargs = [[cls, url, self.token, timeout] for url in self.connections] log.info('Testing %s device connections..', len(listargs)) results = utils.threaded(_connect, listargs) - _chooseConnection('Device', self.name, results) + return _chooseConnection('Device', self.name, results) def delete(self): """ Remove this device from your account. """