From 01a743c7d497a61e26e9c7e73e6f0bdddd1d44f9 Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Fri, 29 Jan 2016 22:09:59 -0500 Subject: [PATCH] Log if target == NULL --- homeassistant/components/notify/googlevoice.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/components/notify/googlevoice.py b/homeassistant/components/notify/googlevoice.py index a1ce39a6129..e37586c5cf6 100644 --- a/homeassistant/components/notify/googlevoice.py +++ b/homeassistant/components/notify/googlevoice.py @@ -46,6 +46,10 @@ class GoogleVoiceSMSNotificationService(BaseNotificationService): targets = kwargs.get(ATTR_TARGET) + if not targets: + _LOGGER.info('At least 1 target is required') + return + if not isinstance(targets, list): targets = [targets]