From 33d55dcd935b999838a6ecdb7859d3b7b04aed06 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 8 Jun 2019 22:37:19 +0200 Subject: [PATCH] Fixed Pushbullet backend --- platypush/backend/pushbullet/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/platypush/backend/pushbullet/__init__.py b/platypush/backend/pushbullet/__init__.py index e0c080f18c..e6e29d4846 100644 --- a/platypush/backend/pushbullet/__init__.py +++ b/platypush/backend/pushbullet/__init__.py @@ -1,12 +1,9 @@ import json -import requests import time from pushbullet import Pushbullet, Listener from platypush.backend import Backend -from platypush.config import Config -from platypush.message import Message from platypush.message.event.pushbullet import PushbulletEvent @@ -115,9 +112,8 @@ class PushbulletBackend(Backend): try: return self.pb.get_device(self.device_name).device_iden except Exception as e: - device = self.pb.new_device(name, model='Platypush virtual device', - manufactorer='platypush', - app_version=8623, icon='system') + device = self.pb.new_device(self.device_name, model='Platypush virtual device', + manufacturer='platypush', icon='system') self.logger.info('Created Pushbullet device {}'.format( self.device_name))