From f1142638455dd7f4409c4971ae47ba559708189f Mon Sep 17 00:00:00 2001 From: karlkar Date: Wed, 16 Aug 2017 09:29:42 +0200 Subject: [PATCH] Pushbullet, fix multiple messages sent when url param is set (#9006) --- homeassistant/components/notify/pushbullet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/notify/pushbullet.py b/homeassistant/components/notify/pushbullet.py index 8ac2bd06dad..bbc7c18ffab 100644 --- a/homeassistant/components/notify/pushbullet.py +++ b/homeassistant/components/notify/pushbullet.py @@ -91,7 +91,7 @@ class PushBulletNotificationService(BaseNotificationService): # Backward compatibility, notify all devices in own account if url: self.pushbullet.push_link(title, url, body=message) - if filepath and self.hass.config.is_allowed_path(filepath): + elif filepath and self.hass.config.is_allowed_path(filepath): with open(filepath, "rb") as fileh: filedata = self.pushbullet.upload_file(fileh, filepath) self.pushbullet.push_file(title=title, body=message,