Send single Pushbullet when no device is selected. fix #3471

This commit is contained in:
Ruud committed 2014-06-20 21:29:43 +02:00
1 parent 7db291fc93
commit 33884deb6c
1 file changed
+1 -5
+1 -5
View File
@@ -25,11 +25,7 @@ class Pushbullet(Notification):
# Get all the device IDs linked to this user # Get all the device IDs linked to this user
if not len(devices): if not len(devices):
response = self.request('devices') devices = [None]
if not response:
return False
devices += [device.get('id') for device in response['devices']]
successful = 0 successful = 0
for device in devices: for device in devices: