From 221db3a2dd1db9ee22fd4984c23a840347713d42 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Sun, 1 Dec 2019 06:22:33 +0100 Subject: [PATCH] Move imports to top for simplepush (#29261) --- homeassistant/components/simplepush/notify.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/simplepush/notify.py b/homeassistant/components/simplepush/notify.py index 0b3b09fe11b..63bcd31935e 100644 --- a/homeassistant/components/simplepush/notify.py +++ b/homeassistant/components/simplepush/notify.py @@ -1,17 +1,17 @@ """Simplepush notification service.""" import logging +from simplepush import send, send_encrypted import voluptuous as vol -from homeassistant.const import CONF_PASSWORD -import homeassistant.helpers.config_validation as cv - from homeassistant.components.notify import ( ATTR_TITLE, ATTR_TITLE_DEFAULT, PLATFORM_SCHEMA, BaseNotificationService, ) +from homeassistant.const import CONF_PASSWORD +import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) @@ -48,7 +48,6 @@ class SimplePushNotificationService(BaseNotificationService): def send_message(self, message="", **kwargs): """Send a message to a Simplepush user.""" - from simplepush import send, send_encrypted title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)