mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Move imports in gntp component (#27994)
This commit is contained in:
parent
ab2d1ee134
commit
92ed89969c
@ -2,17 +2,18 @@
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
import gntp.errors
|
||||||
|
import gntp.notifier
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_PORT
|
|
||||||
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, CONF_PORT
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -69,9 +70,6 @@ class GNTPNotificationService(BaseNotificationService):
|
|||||||
|
|
||||||
def __init__(self, app_name, app_icon, hostname, password, port):
|
def __init__(self, app_name, app_icon, hostname, password, port):
|
||||||
"""Initialize the service."""
|
"""Initialize the service."""
|
||||||
import gntp.notifier
|
|
||||||
import gntp.errors
|
|
||||||
|
|
||||||
self.gntp = gntp.notifier.GrowlNotifier(
|
self.gntp = gntp.notifier.GrowlNotifier(
|
||||||
applicationName=app_name,
|
applicationName=app_name,
|
||||||
notifications=["Notification"],
|
notifications=["Notification"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user