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:
Keith Lamprecht authored and Paulus Schoutsen committed 2016-10-11 21:59:45 -07:00
1 parent 73547c8c4b
commit e4685de459
1 file changed
+3
@@ -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