<type>.<name> split only on first separator
This commit is contained in:
parent
9b4650afd4
commit
aee4411cfb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue