fix bug so device returns a object as it should.

This commit is contained in:
Hellowlol 2018-04-03 23:08:17 +02:00
parent 4620e00af4
commit 6238fa5fd2

View file

@ -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. """