mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02: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:
committed by
Paulus Schoutsen
parent
73547c8c4b
commit
e4685de459
@@ -63,6 +63,9 @@ class PushoverNotificationService(BaseNotificationService):
|
||||
|
||||
targets = kwargs.get(ATTR_TARGET)
|
||||
|
||||
if not isinstance(targets, list):
|
||||
targets = [targets]
|
||||
|
||||
for target in targets:
|
||||
if target is not None:
|
||||
data['device'] = target
|
||||
|
Reference in New Issue
Block a user