<type>.<name> split only on first separator
This commit is contained in:
1 parent
9b4650afd4
commit
aee4411cfb
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user