<type>.<name> split only on first separator

This commit is contained in:
Tom Duijf 2015-11-15 22:44:51 +00:00
parent 9b4650afd4
commit aee4411cfb

View file

@ -81,7 +81,7 @@ class PushBulletNotificationService(BaseNotificationService):
targets = [targets]
# Main loop, Process all targets specified
for ttype, tname in [target.split('.') for target in targets]:
for ttype, tname in [target.split('.', 1) for target in targets]:
if ttype == 'device' and not tname:
# Allow for 'normal' push, combined with other targets
self.pushbullet.push_note(title, message)