mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
<type>.<name> split only on first separator
This commit is contained in:
parent
9b4650afd4
commit
aee4411cfb
@ -81,7 +81,7 @@ class PushBulletNotificationService(BaseNotificationService):
|
|||||||
targets = [targets]
|
targets = [targets]
|
||||||
|
|
||||||
# Main loop, Process all targets specified
|
# 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:
|
if ttype == 'device' and not tname:
|
||||||
# Allow for 'normal' push, combined with other targets
|
# Allow for 'normal' push, combined with other targets
|
||||||
self.pushbullet.push_note(title, message)
|
self.pushbullet.push_note(title, message)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user