mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Move free_mobile imports at top-level (#29092)
This commit is contained in:
committed by
Paulus Schoutsen
parent
274508f8fd
commit
c84590b18c
@@ -1,13 +1,13 @@
|
||||
"""Support for thr Free Mobile SMS platform."""
|
||||
"""Support for Free Mobile SMS platform."""
|
||||
import logging
|
||||
|
||||
from freesms import FreeClient
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.notify import PLATFORM_SCHEMA, BaseNotificationService
|
||||
from homeassistant.const import CONF_ACCESS_TOKEN, CONF_USERNAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from homeassistant.components.notify import PLATFORM_SCHEMA, BaseNotificationService
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
@@ -25,8 +25,6 @@ class FreeSMSNotificationService(BaseNotificationService):
|
||||
|
||||
def __init__(self, username, access_token):
|
||||
"""Initialize the service."""
|
||||
from freesms import FreeClient
|
||||
|
||||
self.free_client = FreeClient(username, access_token)
|
||||
|
||||
def send_message(self, message="", **kwargs):
|
||||
|
Reference in New Issue
Block a user