Token moved to pushbullet section

This commit is contained in:
Fabio Manganiello 2017-11-03 11:31:19 +01:00
parent aa52872485
commit fd68c7b4da
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,7 @@
pushbullet_token: o.EHMMnZneJdpNQv9FSFbyY2busin7floe
pushbullet:
token: o.EHMMnZneJdpNQv9FSFbyY2busin7floe
device: turing # Virtual PushBullet device linked to notifier
# device_id: <your_device_id> (default: hostname)
# debug: True (default: False)

View file

@ -28,7 +28,7 @@ config = {}
with open(config_file,'r') as f:
config = yaml.load(f)
API_KEY = config['pushbullet_token']
API_KEY = config['pushbullet']['token']
DEVICE_ID = config['device_id'] \
if 'device_id' in config else socket.gethostname()