From d83de36c327590f2474fe71cd28038b37743f8fd Mon Sep 17 00:00:00 2001 From: Keith Lamprecht Date: Wed, 12 Oct 2016 00:59:34 -0400 Subject: [PATCH] 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 --- homeassistant/components/notify/pushover.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/notify/pushover.py b/homeassistant/components/notify/pushover.py index bd7542c21cd..04aa7627963 100644 --- a/homeassistant/components/notify/pushover.py +++ b/homeassistant/components/notify/pushover.py @@ -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