diff --git a/homeassistant/components/pushbullet/notify.py b/homeassistant/components/pushbullet/notify.py index 76c1e14e5a5..28cb08cc69c 100644 --- a/homeassistant/components/pushbullet/notify.py +++ b/homeassistant/components/pushbullet/notify.py @@ -2,14 +2,9 @@ import logging import mimetypes -from pushbullet import PushBullet -from pushbullet import InvalidKeyError -from pushbullet import PushError +from pushbullet import InvalidKeyError, PushBullet, PushError import voluptuous as vol -from homeassistant.const import CONF_API_KEY -import homeassistant.helpers.config_validation as cv - from homeassistant.components.notify import ( ATTR_DATA, ATTR_TARGET, @@ -18,6 +13,8 @@ from homeassistant.components.notify import ( PLATFORM_SCHEMA, BaseNotificationService, ) +from homeassistant.const import CONF_API_KEY +import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/pushbullet/sensor.py b/homeassistant/components/pushbullet/sensor.py index 600b38b6eaf..771ba55586c 100644 --- a/homeassistant/components/pushbullet/sensor.py +++ b/homeassistant/components/pushbullet/sensor.py @@ -2,13 +2,11 @@ import logging import threading -from pushbullet import PushBullet -from pushbullet import InvalidKeyError -from pushbullet import Listener +from pushbullet import InvalidKeyError, Listener, PushBullet import voluptuous as vol -from homeassistant.const import CONF_API_KEY, CONF_MONITORED_CONDITIONS from homeassistant.components.sensor import PLATFORM_SCHEMA +from homeassistant.const import CONF_API_KEY, CONF_MONITORED_CONDITIONS import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity diff --git a/tests/components/pushbullet/test_notify.py b/tests/components/pushbullet/test_notify.py index d95a942d25b..4c731c1f704 100644 --- a/tests/components/pushbullet/test_notify.py +++ b/tests/components/pushbullet/test_notify.py @@ -6,8 +6,9 @@ from unittest.mock import patch from pushbullet import PushBullet import requests_mock -from homeassistant.setup import setup_component import homeassistant.components.notify as notify +from homeassistant.setup import setup_component + from tests.common import assert_setup_component, get_test_home_assistant, load_fixture