Upgrade pushbullet.py to 0.7.1

This commit is contained in:
Paulus Schoutsen 2015-01-11 08:09:25 -08:00
parent c2b8f8d34e
commit 035e3e686e
3 changed files with 13 additions and 7 deletions

View File

@ -50,7 +50,7 @@ def setup(hass, config):
notify_service = notify_implementation.get_service(hass, config)
if notify_service is None:
_LOGGER.error("Failed to initialize notificatino service %s",
_LOGGER.error("Failed to initialize notification service %s",
platform)
return False

View File

@ -22,16 +22,22 @@ def get_service(hass, config):
try:
# pylint: disable=unused-variable
from pushbullet import PushBullet # noqa
from pushbullet import PushBullet, InvalidKeyError # noqa
except ImportError:
_LOGGER.exception(
"Unable to import pushbullet. "
"Did you maybe not install the 'pushbullet' package?")
"Did you maybe not install the 'pushbullet.py' package?")
return None
return PushBulletNotificationService(config[DOMAIN][CONF_API_KEY])
try:
return PushBulletNotificationService(config[DOMAIN][CONF_API_KEY])
except InvalidKeyError:
_LOGGER.error(
"Wrong API key supplied. "
"Get it at https://www.pushbullet.com/account")
# pylint: disable=too-few-public-methods

View File

@ -21,8 +21,8 @@ pyuserinput>=0.1.9
# switch.tellstick, tellstick_sensor
tellcore-py>=1.0.4
# namp_tracker plugin
# device_tracker.nmap
python-libnmap
# pushbullet
pushbullet.py>=0.5.0
# notify.pushbullet
pushbullet.py>=0.7.1