diff --git a/homeassistant/components/twitter/notify.py b/homeassistant/components/twitter/notify.py index d64f8ec3fbf..d89755969a1 100644 --- a/homeassistant/components/twitter/notify.py +++ b/homeassistant/components/twitter/notify.py @@ -81,7 +81,7 @@ class TwitterNotificationService(BaseNotificationService): if not self.hass.config.is_allowed_path(media): _LOGGER.warning("'%s' is not a whitelisted directory", media) return - + if targets: for target in targets: callback = partial(self.send_message_callback, message, target)