diff --git a/homeassistant/components/notify/pushbullet.py b/homeassistant/components/notify/pushbullet.py index a34d21408c3..9eea56894ae 100644 --- a/homeassistant/components/notify/pushbullet.py +++ b/homeassistant/components/notify/pushbullet.py @@ -8,12 +8,13 @@ https://home-assistant.io/components/notify.pushbullet/ """ import logging -from homeassistant.components.notify import ATTR_TITLE, BaseNotificationService +from homeassistant.components.notify import ( + ATTR_TITLE, ATTR_TARGET, BaseNotificationService) from homeassistant.const import CONF_API_KEY _LOGGER = logging.getLogger(__name__) REQUIREMENTS = ['pushbullet.py==0.9.0'] -ATTR_TARGET = 'target' + # pylint: disable=unused-argument def get_service(hass, config): @@ -61,8 +62,8 @@ class PushBulletNotificationService(BaseNotificationService): def send_message(self, message=None, **kwargs): """ Send a message to a user. """ targets = kwargs.get(ATTR_TARGET) - title = kwargs.get(ATTR_TITLE) # Disabeling title + title = kwargs.get(ATTR_TITLE) title = None if targets: diff --git a/homeassistant/components/notify/services.yaml b/homeassistant/components/notify/services.yaml index 3bfdb6d4de3..3b2734e2674 100644 --- a/homeassistant/components/notify/services.yaml +++ b/homeassistant/components/notify/services.yaml @@ -9,3 +9,7 @@ notify: title: description: Optional title for your notification. example: 'Your Garage Door Friend' + + target: + description: Target of the notification. Optional depending on the platform + example: platform specific diff --git a/requirements_all.txt b/requirements_all.txt index 571708ab873..efb2366cdb0 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -29,7 +29,7 @@ tellcore-py==1.1.2 python-nmap==0.4.3 # PushBullet (notify.pushbullet) -pushbullet.py==0.8.1 +pushbullet.py==0.9.0 # Nest Thermostat (thermostat.nest) python-nest==2.6.0