mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Restore Optional Target Config Attribute (notify.pushover) (#3769)
* Restore Optional Target Config Attribute * Fix Tabs * Change indents to spaces * Make a target fix * Change to simpler not syntax
This commit is contained in:
parent
40094cecae
commit
d83de36c32
@ -63,6 +63,9 @@ class PushoverNotificationService(BaseNotificationService):
|
|||||||
|
|
||||||
targets = kwargs.get(ATTR_TARGET)
|
targets = kwargs.get(ATTR_TARGET)
|
||||||
|
|
||||||
|
if not isinstance(targets, list):
|
||||||
|
targets = [targets]
|
||||||
|
|
||||||
for target in targets:
|
for target in targets:
|
||||||
if target is not None:
|
if target is not None:
|
||||||
data['device'] = target
|
data['device'] = target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user