mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Move imports to top for simplepush (#29261)
This commit is contained in:
parent
11b274989a
commit
221db3a2dd
@ -1,17 +1,17 @@
|
|||||||
"""Simplepush notification service."""
|
"""Simplepush notification service."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from simplepush import send, send_encrypted
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_PASSWORD
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
|
|
||||||
from homeassistant.components.notify import (
|
from homeassistant.components.notify import (
|
||||||
ATTR_TITLE,
|
ATTR_TITLE,
|
||||||
ATTR_TITLE_DEFAULT,
|
ATTR_TITLE_DEFAULT,
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
BaseNotificationService,
|
BaseNotificationService,
|
||||||
)
|
)
|
||||||
|
from homeassistant.const import CONF_PASSWORD
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -48,7 +48,6 @@ class SimplePushNotificationService(BaseNotificationService):
|
|||||||
|
|
||||||
def send_message(self, message="", **kwargs):
|
def send_message(self, message="", **kwargs):
|
||||||
"""Send a message to a Simplepush user."""
|
"""Send a message to a Simplepush user."""
|
||||||
from simplepush import send, send_encrypted
|
|
||||||
|
|
||||||
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
|
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user